#2D420F#2D420F

#2D420F is a dark, moderate yellow-green. Relative luminance 0.045; OKLCH L 34.9% C 0.079 H 129.2°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#2D420F
RGBrgb(45, 66, 15)
HSLhsl(85, 63%, 16%)
HSVhsv(85, 77%, 26%)
CMYKcmyk(31.8%, 0%, 77.3%, 74.1%)
CIE-LABlab(25.23, -17.66, 27.15)
CIE-LCHlch(25.23, 32.38, 123.05°)
OKLaboklab(34.94% -0.0501 0.0615)
OKLCHoklch(34.94% 0.079 129.2)
XYZxyz(3.1166, 4.4887, 1.1541)
Luminance0.0449 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D420F #240F42
analogous
#423D0F #2D420F #13420F
triadic
#2D420F #0F2D42 #420F2D
tetradic
#2D420F #0F423D #240F42 #420F13
square
#2D420F #0F423D #240F42 #420F13
split-complementary
#2D420F #0F1342 #3D0F42
monochromatic
#111906 #111906 #2D420F #4F741A #71A626

Accessibility & contrast

On white

11.07
#2D420F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2D420F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D420F
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D420F#FFFFFF#000000##FFFFFF
##2D420F1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453D08
Deuteranopia (green-blind)
#433B13
Tritanopia (blue-blind)
#2F3F38
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d420f;
/* rgb */ color: rgb(45, 66, 15);
/* oklch */ color: oklch(34.9% 0.079 129.2);
Tailwind
colors: {
  custom: {
    50: '#687651',
    500: '#2d420f',
    950: '#000000',
  },
}
SCSS
$custom: #2d420f;
$custom-light: #687651;
$custom-dark: #000000;
JSON
{
  "hex": "#2d420f",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 15
  },
  "hsl": {
    "h": 84.706,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.3494,
    "c": 0.07936,
    "h": 129.2
  },
  "luminance": 0.04489
}

Semantic roles & 50–950 ramp

primary
#2D420F
secondary
#50307C
accent
#42E685
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2D420F

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

Preview Lab → · Contrast checker → · Palette generator →

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