#2D5D12#2D5D12

#2D5D12 is a dark, moderate yellow-green. Relative luminance 0.084; OKLCH L 42.8% C 0.116 H 136.9°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#2D5D12
RGBrgb(45, 93, 18)
HSLhsl(98, 68%, 22%)
HSVhsv(98, 81%, 36%)
CMYKcmyk(51.6%, 0%, 80.6%, 63.5%)
CIE-LABlab(34.86, -30.58, 35.54)
CIE-LCHlch(34.86, 46.89, 130.71°)
OKLaboklab(42.83% -0.0849 0.0796)
OKLCHoklch(42.83% 0.116 136.9)
XYZxyz(5.1056, 8.4299, 1.9303)
Luminance0.0843 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5D12 #42125D
analogous
#535D12 #2D5D12 #125D1D
triadic
#2D5D12 #122D5D #5D122D
tetradic
#2D5D12 #12535D #42125D #5D1D12
square
#2D5D12 #12535D #42125D #5D1D12
split-complementary
#2D5D12 #1D125D #5D1253
monochromatic
#0C1A05 #142A08 #2D5D12 #46901C #5FC426

Accessibility & contrast

On white

7.82
#2D5D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#2D5D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5D12
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5D12#FFFFFF#000000##FFFFFF
##2D5D121.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605403
Deuteranopia (green-blind)
#5A511A
Tritanopia (blue-blind)
#2A594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2d5d12;
/* rgb */ color: rgb(45, 93, 18);
/* oklch */ color: oklch(42.8% 0.116 136.9);
Tailwind
colors: {
  custom: {
    50: '#6b8b56',
    500: '#2d5d12',
    950: '#000000',
  },
}
SCSS
$custom: #2d5d12;
$custom-light: #6b8b56;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5d12",
  "rgb": {
    "r": 45,
    "g": 93,
    "b": 18
  },
  "hsl": {
    "h": 98.4,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.42829,
    "c": 0.11639,
    "h": 136.9
  },
  "luminance": 0.0843
}

Semantic roles & 50–950 ramp

primary
#2D5D12
secondary
#733595
accent
#3DEAAC
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2D5D12

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

Preview Lab → · Contrast checker → · Palette generator →

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