#2A4212#2A4212

#2A4212 is a dark, moderate yellow-green. Relative luminance 0.044; OKLCH L 34.8% C 0.079 H 132.0°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#2A4212
RGBrgb(42, 66, 18)
HSLhsl(90, 57%, 16%)
HSVhsv(90, 73%, 26%)
CMYKcmyk(36.4%, 0%, 72.7%, 74.1%)
CIE-LABlab(25.05, -18.72, 25.43)
CIE-LCHlch(25.05, 31.58, 126.35°)
OKLaboklab(34.76% -0.0525 0.0584)
OKLCHoklch(34.76% 0.079 132)
XYZxyz(3.0122, 4.4322, 1.2689)
Luminance0.0443 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4212 #2A1242
analogous
#424212 #2A4212 #124212
triadic
#2A4212 #122A42 #42122A
tetradic
#2A4212 #124242 #2A1242 #421212
square
#2A4212 #124242 #2A1242 #421212
split-complementary
#2A4212 #121242 #421242
monochromatic
#0F1807 #0F1807 #2A4212 #49721F #67A22C

Accessibility & contrast

On white

11.13
#2A4212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2A4212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4212
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4212#FFFFFF#000000##FFFFFF
##2A42121.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a4212;
/* rgb */ color: rgb(42, 66, 18);
/* oklch */ color: oklch(34.8% 0.079 132.0);
Tailwind
colors: {
  custom: {
    50: '#667652',
    500: '#2a4212',
    950: '#000000',
  },
}
SCSS
$custom: #2a4212;
$custom-light: #667652;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4212",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 18
  },
  "hsl": {
    "h": 90,
    "s": 57.143,
    "l": 16.471
  },
  "oklch": {
    "l": 0.34755,
    "c": 0.07858,
    "h": 132
  },
  "luminance": 0.04432
}

Semantic roles & 50–950 ramp

primary
#2A4212
secondary
#58357B
accent
#47E094
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2A4212

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

Preview Lab → · Contrast checker → · Palette generator →

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