#2A420C#2A420C

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

Color values

HEX#2A420C
RGBrgb(42, 66, 12)
HSLhsl(87, 69%, 15%)
HSVhsv(87, 82%, 26%)
CMYKcmyk(36.4%, 0%, 81.8%, 74.1%)
CIE-LABlab(25.00, -19.24, 28.21)
CIE-LCHlch(25.00, 34.14, 124.30°)
OKLaboklab(34.7% -0.0545 0.0633)
OKLCHoklch(34.7% 0.084 130.8)
XYZxyz(2.9694, 4.4151, 1.0435)
Luminance0.0442 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A420C #240C42
analogous
#423F0C #2A420C #0F420C
triadic
#2A420C #0C2A42 #420C2A
tetradic
#2A420C #0C423F #240C42 #420C0F
square
#2A420C #0C423F #240C42 #420C0F
split-complementary
#2A420C #0C0F42 #3F0C42
monochromatic
#101A05 #101A05 #2A420C #4B7615 #6CAA1F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A420C#FFFFFF#000000##FFFFFF
##2A420C1.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)
#453C04
Deuteranopia (green-blind)
#423B11
Tritanopia (blue-blind)
#2B3F38
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a420c;
/* rgb */ color: rgb(42, 66, 12);
/* oklch */ color: oklch(34.7% 0.084 130.8);
Tailwind
colors: {
  custom: {
    50: '#66764f',
    500: '#2a420c',
    950: '#000000',
  },
}
SCSS
$custom: #2a420c;
$custom-light: #66764f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a420c",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 12
  },
  "hsl": {
    "h": 86.667,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.34695,
    "c": 0.08353,
    "h": 130.8
  },
  "luminance": 0.04415
}

Semantic roles & 50–950 ramp

primary
#2A420C
secondary
#502C7E
accent
#3CEC8A
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2A420C

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

Preview Lab → · Contrast checker → · Palette generator →

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