diff --git a/src/ipa/softisp/algorithms/agc.cpp b/src/ipa/softisp/algorithms/agc.cpp
index ea234bc2ae4b..b20cf388cc1b 100644
--- a/src/ipa/softisp/algorithms/agc.cpp
+++ b/src/ipa/softisp/algorithms/agc.cpp
@@ -99,6 +99,7 @@ void Agc::process(IPAContext &context,
 			.yHist = yHist,
 			.exposure = frameContext.sensor.exposure,
 			.gain = frameContext.sensor.gain,
+			.lux = frameContext.lux.lux,
 		}}, metadata);
 	} else {
 		agc_.process(context.configuration.agc, context.activeState.agc, frameContext.agc, {}, metadata);
diff --git a/src/ipa/softisp/algorithms/awb.cpp b/src/ipa/softisp/algorithms/awb.cpp
index fb9bcb06a75e..6c46cd02052d 100644
--- a/src/ipa/softisp/algorithms/awb.cpp
+++ b/src/ipa/softisp/algorithms/awb.cpp
@@ -19,11 +19,6 @@ LOG_DEFINE_CATEGORY(IPASoftIspAwb)
 
 namespace ipa::softisp::algorithms {
 
-/*
- * \todo Replace it with a proper Lux algorithm
- */
-static constexpr unsigned int kDefaultLux = 500;
-
 class SoftIspAwbStats final : public AwbStats
 {
 public:
@@ -160,7 +155,7 @@ void Awb::process(IPAContext &context, [[maybe_unused]] const uint32_t frame,
 	SoftIspAwbStats awbStats = calculateRgbMeans(context, stats);
 
 	awbAlgo_.process(context.activeState.awb, frameContext.awb, awbStats,
-			 kDefaultLux, metadata);
+			 frameContext.lux.lux, metadata);
 }
 
 REGISTER_IPA_ALGORITHM(Awb, "Awb")
diff --git a/src/ipa/softisp/algorithms/lux.cpp b/src/ipa/softisp/algorithms/lux.cpp
new file mode 100644
index 000000000000..f0c89bcdb8b9
--- /dev/null
+++ b/src/ipa/softisp/algorithms/lux.cpp
@@ -0,0 +1,82 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+/*
+ * Copyright (C) 2026, Ideas On Board
+ *
+ * SoftISP Lux control
+ */
+
+#include "lux.h"
+
+#include <libcamera/base/log.h>
+
+#include <libcamera/control_ids.h>
+
+#include "libipa/histogram.h"
+#include "libipa/lux.h"
+
+/**
+ * \file lux.h
+ */
+
+namespace libcamera {
+
+namespace ipa::softisp::algorithms {
+
+/**
+ * \class Lux
+ * \brief SoftISP Lux control
+ *
+ * The Lux algorithm is responsible for estimating the lux level of the image.
+ * It doesn't take or generate any controls, but it provides a lux level for
+ * other algorithms (such as AGC) to use.
+ */
+
+/**
+ * \copydoc libcamera::ipa::Algorithm::init
+ */
+int Lux::init([[maybe_unused]] IPAContext &context, const ValueNode &tuningData)
+{
+	return lux_.init(tuningData);
+}
+
+/**
+ * \copydoc libcamera::ipa::Algorithm::prepare
+ */
+void Lux::prepare(IPAContext &context, [[maybe_unused]] const uint32_t frame,
+		  IPAFrameContext &frameContext,
+		  [[maybe_unused]] DebayerParams *params)
+{
+	lux_.prepare(context.activeState.lux, frameContext.lux);
+}
+
+/**
+ * \copydoc libcamera::ipa::Algorithm::process
+ */
+void Lux::process(IPAContext &context,
+		  [[maybe_unused]] const uint32_t frame,
+		  IPAFrameContext &frameContext,
+		  const SwIspStats *stats,
+		  ControlList &metadata)
+{
+	if (!stats) {
+		lux_.process(context.activeState.lux, frameContext.lux, metadata, {});
+		return;
+	}
+
+	Histogram yHist(stats->yHistogram);
+
+	lux_.process(context.activeState.lux, frameContext.lux, metadata,
+		     { {
+			     .exposureTime = context.configuration.agc.lineDuration *
+					     frameContext.sensor.exposure,
+			     .analogueGain = frameContext.sensor.gain,
+			     .digitalGain = 1,
+			     .yHist = yHist,
+		     } });
+}
+
+REGISTER_IPA_ALGORITHM(Lux, "Lux")
+
+} /* namespace ipa::softisp::algorithms */
+
+} /* namespace libcamera */
diff --git a/src/ipa/softisp/algorithms/lux.h b/src/ipa/softisp/algorithms/lux.h
new file mode 100644
index 000000000000..606ebea52ca0
--- /dev/null
+++ b/src/ipa/softisp/algorithms/lux.h
@@ -0,0 +1,37 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+/*
+ * Copyright (C) 2026, Ideas On Board
+ *
+ * RkISP1 Lux control
+ */
+
+#pragma once
+
+#include <sys/types.h>
+
+#include "libipa/lux.h"
+
+#include "algorithm.h"
+
+namespace libcamera {
+
+namespace ipa::softisp::algorithms {
+
+class Lux : public Algorithm
+{
+public:
+	int init(IPAContext &context, const ValueNode &tuningData) override;
+	void prepare(IPAContext &context, const uint32_t frame,
+		     IPAFrameContext &frameContext,
+		     DebayerParams *params) override;
+	void process(IPAContext &context, const uint32_t frame,
+		     IPAFrameContext &frameContext,
+		     const SwIspStats *stats,
+		     ControlList &metadata) override;
+
+private:
+	ipa::LuxAlgorithm lux_;
+};
+
+} /* namespace ipa::softisp::algorithms */
+} /* namespace libcamera */
diff --git a/src/ipa/softisp/algorithms/meson.build b/src/ipa/softisp/algorithms/meson.build
index d98f4b1f45d4..0f0d65dcd7b8 100644
--- a/src/ipa/softisp/algorithms/meson.build
+++ b/src/ipa/softisp/algorithms/meson.build
@@ -7,4 +7,5 @@ softisp_ipa_algorithms = files([
     'blc.cpp',
     'ccm.cpp',
     'lsc.cpp',
+    'lux.cpp',
 ])
diff --git a/src/ipa/softisp/ipa_context.h b/src/ipa/softisp/ipa_context.h
index 62d1ae84b3c8..ab1f55006337 100644
--- a/src/ipa/softisp/ipa_context.h
+++ b/src/ipa/softisp/ipa_context.h
@@ -22,7 +22,8 @@
 #include <libipa/camera_sensor_helper.h>
 #include <libipa/ccm.h>
 #include <libipa/fc_queue.h>
-#include "libipa/lsc.h"
+#include <libipa/lsc.h>
+#include <libipa/lux.h>
 
 #include "core_ipa_interface.h"
 
@@ -58,6 +59,7 @@ struct IPAActiveState {
 	} knobs;
 
 	ipa::lsc::ActiveState lsc;
+	ipa::lux::ActiveState lux;
 };
 
 struct IPAFrameContext : public FrameContext {
@@ -74,6 +76,7 @@ struct IPAFrameContext : public FrameContext {
 	std::optional<float> contrast;
 	std::optional<float> saturation;
 	ipa::lsc::FrameContext lsc;
+	ipa::lux::FrameContext lux;
 };
 
 struct IPAContext {
