#2D5B10#2D5B10

#2D5B10 is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.2% C 0.115 H 136.3°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#2D5B10
RGBrgb(45, 91, 16)
HSLhsl(97, 70%, 21%)
HSVhsv(97, 82%, 36%)
CMYKcmyk(50.5%, 0%, 82.4%, 64.3%)
CIE-LABlab(34.14, -29.83, 35.60)
CIE-LCHlch(34.14, 46.45, 129.96°)
OKLaboklab(42.23% -0.0831 0.0794)
OKLCHoklch(42.23% 0.115 136.3)
XYZxyz(4.9167, 8.0771, 1.7901)
Luminance0.0808 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5B10 #3E105B
analogous
#525B10 #2D5B10 #105B18
triadic
#2D5B10 #102D5B #5B102D
tetradic
#2D5B10 #10525B #3E105B #5B1810
square
#2D5B10 #10525B #3E105B #5B1810
split-complementary
#2D5B10 #18105B #5B1052
monochromatic
#0D1A05 #132707 #2D5B10 #478F19 #60C322

Accessibility & contrast

On white

8.03
#2D5B10 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2D5B10 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5B10
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5B10#FFFFFF#000000##FFFFFF
##2D5B101.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5301
Deuteranopia (green-blind)
#584F18
Tritanopia (blue-blind)
#2B574D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2d5b10;
/* rgb */ color: rgb(45, 91, 16);
/* oklch */ color: oklch(42.2% 0.115 136.3);
Tailwind
colors: {
  custom: {
    50: '#6b8a55',
    500: '#2d5b10',
    950: '#000000',
  },
}
SCSS
$custom: #2d5b10;
$custom-light: #6b8a55;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5b10",
  "rgb": {
    "r": 45,
    "g": 91,
    "b": 16
  },
  "hsl": {
    "h": 96.8,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42234,
    "c": 0.11488,
    "h": 136.3
  },
  "luminance": 0.08077
}

Semantic roles & 50–950 ramp

primary
#2D5B10
secondary
#6E3394
accent
#3BEDA8
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5B10

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

Preview Lab → · Contrast checker → · Palette generator →

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