#2A420B#2A420B

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

Color values

HEX#2A420B
RGBrgb(42, 66, 11)
HSLhsl(86, 71%, 15%)
HSVhsv(86, 83%, 26%)
CMYKcmyk(36.4%, 0%, 83.3%, 74.1%)
CIE-LABlab(24.99, -19.32, 28.62)
CIE-LCHlch(24.99, 34.53, 124.02°)
OKLaboklab(34.69% -0.0548 0.064)
OKLCHoklch(34.69% 0.084 130.6)
XYZxyz(2.9634, 4.4127, 1.0121)
Luminance0.0441 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A420B #230B42
analogous
#423F0B #2A420B #0E420B
triadic
#2A420B #0B2A42 #420B2A
tetradic
#2A420B #0B423F #230B42 #420B0E
square
#2A420B #0B423F #230B42 #420B0E
split-complementary
#2A420B #0B0E42 #3F0B42
monochromatic
#111A04 #111A04 #2A420B #4B7614 #6DAB1C

Accessibility & contrast

On white

11.15
#2A420B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A420B
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A420B#FFFFFF#000000##FFFFFF
##2A420B1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C03
Deuteranopia (green-blind)
#423B10
Tritanopia (blue-blind)
#2B3F37
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a420b;
/* rgb */ color: rgb(42, 66, 11);
/* oklch */ color: oklch(34.7% 0.084 130.6);
Tailwind
colors: {
  custom: {
    50: '#66764e',
    500: '#2a420b',
    950: '#000000',
  },
}
SCSS
$custom: #2a420b;
$custom-light: #66764e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a420b",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 11
  },
  "hsl": {
    "h": 86.182,
    "s": 71.429,
    "l": 15.098
  },
  "oklch": {
    "l": 0.34686,
    "c": 0.08424,
    "h": 130.6
  },
  "luminance": 0.04413
}

Semantic roles & 50–950 ramp

primary
#2A420B
secondary
#4F2A7F
accent
#3AEE88
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2A420B

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

Preview Lab → · Contrast checker → · Palette generator →

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