#2A420F#2A420F

#2A420F is a dark, moderate yellow-green. Relative luminance 0.044; OKLCH L 34.7% C 0.081 H 131.3°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#2A420F
RGBrgb(42, 66, 15)
HSLhsl(88, 63%, 16%)
HSVhsv(88, 77%, 26%)
CMYKcmyk(36.4%, 0%, 77.3%, 74.1%)
CIE-LABlab(25.02, -19.00, 26.87)
CIE-LCHlch(25.02, 32.91, 125.26°)
OKLaboklab(34.72% -0.0536 0.061)
OKLCHoklch(34.72% 0.081 131.3)
XYZxyz(2.9893, 4.4231, 1.1481)
Luminance0.0442 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A420F #270F42
analogous
#42400F #2A420F #10420F
triadic
#2A420F #0F2A42 #420F2A
tetradic
#2A420F #0F4240 #270F42 #420F10
square
#2A420F #0F4240 #270F42 #420F10
split-complementary
#2A420F #0F1042 #400F42
monochromatic
#101906 #101906 #2A420F #4A741A #69A626

Accessibility & contrast

On white

11.14
#2A420F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2A420F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A420F
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A420F#FFFFFF#000000##FFFFFF
##2A420F1.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453D08
Deuteranopia (green-blind)
#423B13
Tritanopia (blue-blind)
#2B3F38
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a420f;
/* rgb */ color: rgb(42, 66, 15);
/* oklch */ color: oklch(34.7% 0.081 131.3);
Tailwind
colors: {
  custom: {
    50: '#667651',
    500: '#2a420f',
    950: '#000000',
  },
}
SCSS
$custom: #2a420f;
$custom-light: #667651;
$custom-dark: #000000;
JSON
{
  "hex": "#2a420f",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 15
  },
  "hsl": {
    "h": 88.235,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.34723,
    "c": 0.08119,
    "h": 131.3
  },
  "luminance": 0.04423
}

Semantic roles & 50–950 ramp

primary
#2A420F
secondary
#54307C
accent
#42E68F
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2A420F

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

Preview Lab → · Contrast checker → · Palette generator →

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