#2D420C#2D420C

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

Color values

HEX#2D420C
RGBrgb(45, 66, 12)
HSLhsl(83, 69%, 15%)
HSVhsv(83, 82%, 26%)
CMYKcmyk(31.8%, 0%, 81.8%, 74.1%)
CIE-LABlab(25.20, -17.89, 28.47)
CIE-LCHlch(25.20, 33.63, 122.15°)
OKLaboklab(34.91% -0.0511 0.0638)
OKLCHoklch(34.91% 0.082 128.7)
XYZxyz(3.0968, 4.4808, 1.0495)
Luminance0.0448 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D420C #210C42
analogous
#423C0C #2D420C #12420C
triadic
#2D420C #0C2D42 #420C2D
tetradic
#2D420C #0C423C #210C42 #420C12
square
#2D420C #0C423C #210C42 #420C12
split-complementary
#2D420C #0C1242 #3C0C42
monochromatic
#121A05 #121A05 #2D420C #507615 #74AA1F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D420C#FFFFFF#000000##FFFFFF
##2D420C1.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)
#463D04
Deuteranopia (green-blind)
#433B11
Tritanopia (blue-blind)
#2F3F38
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d420c;
/* rgb */ color: rgb(45, 66, 12);
/* oklch */ color: oklch(34.9% 0.082 128.7);
Tailwind
colors: {
  custom: {
    50: '#68764f',
    500: '#2d420c',
    950: '#000000',
  },
}
SCSS
$custom: #2d420c;
$custom-light: #68764f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d420c",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 12
  },
  "hsl": {
    "h": 83.333,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.34913,
    "c": 0.0817,
    "h": 128.7
  },
  "luminance": 0.04481
}

Semantic roles & 50–950 ramp

primary
#2D420C
secondary
#4C2C7E
accent
#3CEC80
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2D420C

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

Preview Lab → · Contrast checker → · Palette generator →

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