#2D5E12#2D5E12

#2D5E12 is a dark, moderate yellow-green. Relative luminance 0.086; OKLCH L 43.1% C 0.118 H 137.0°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#2D5E12
RGBrgb(45, 94, 18)
HSLhsl(99, 68%, 22%)
HSVhsv(99, 81%, 37%)
CMYKcmyk(52.1%, 0%, 80.9%, 63.1%)
CIE-LABlab(35.22, -31.02, 35.89)
CIE-LCHlch(35.22, 47.44, 130.84°)
OKLaboklab(43.12% -0.0861 0.0803)
OKLCHoklch(43.12% 0.118 137)
XYZxyz(5.1939, 8.6066, 1.9597)
Luminance0.0861 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5E12 #43125E
analogous
#535E12 #2D5E12 #125E1D
triadic
#2D5E12 #122D5E #5E122D
tetradic
#2D5E12 #12535E #43125E #5E1D12
square
#2D5E12 #12535E #43125E #5E1D12
split-complementary
#2D5E12 #1D125E #5E1253
monochromatic
#0C1A05 #142B08 #2D5E12 #46911C #5EC526

Accessibility & contrast

On white

7.72
#2D5E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2D5E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5E12
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5E12#FFFFFF#000000##FFFFFF
##2D5E121.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615503
Deuteranopia (green-blind)
#5B511A
Tritanopia (blue-blind)
#2A5A50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2d5e12;
/* rgb */ color: rgb(45, 94, 18);
/* oklch */ color: oklch(43.1% 0.118 137.0);
Tailwind
colors: {
  custom: {
    50: '#6c8c56',
    500: '#2d5e12',
    950: '#000000',
  },
}
SCSS
$custom: #2d5e12;
$custom-light: #6c8c56;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5e12",
  "rgb": {
    "r": 45,
    "g": 94,
    "b": 18
  },
  "hsl": {
    "h": 98.684,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.4312,
    "c": 0.11774,
    "h": 137
  },
  "luminance": 0.08607
}

Semantic roles & 50–950 ramp

primary
#2D5E12
secondary
#743596
accent
#3DEBAD
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2D5E12

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2D5E12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva