#2B420F#2B420F

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

Color values

HEX#2B420F
RGBrgb(43, 66, 15)
HSLhsl(87, 63%, 16%)
HSVhsv(87, 77%, 26%)
CMYKcmyk(34.8%, 0%, 77.3%, 74.1%)
CIE-LABlab(25.09, -18.56, 26.96)
CIE-LCHlch(25.09, 32.73, 124.54°)
OKLaboklab(34.79% -0.0525 0.0612)
OKLCHoklch(34.79% 0.081 130.6)
XYZxyz(3.0307, 4.4444, 1.1500)
Luminance0.0445 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B420F #260F42
analogous
#423F0F #2B420F #11420F
triadic
#2B420F #0F2B42 #420F2B
tetradic
#2B420F #0F423F #260F42 #420F11
square
#2B420F #0F423F #260F42 #420F11
split-complementary
#2B420F #0F1142 #3F0F42
monochromatic
#101906 #101906 #2B420F #4B741A #6CA626

Accessibility & contrast

On white

11.12
#2B420F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B420F
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B420F#FFFFFF#000000##FFFFFF
##2B420F1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b420f;
/* rgb */ color: rgb(43, 66, 15);
/* oklch */ color: oklch(34.8% 0.081 130.6);
Tailwind
colors: {
  custom: {
    50: '#677651',
    500: '#2b420f',
    950: '#000000',
  },
}
SCSS
$custom: #2b420f;
$custom-light: #677651;
$custom-dark: #000000;
JSON
{
  "hex": "#2b420f",
  "rgb": {
    "r": 43,
    "g": 66,
    "b": 15
  },
  "hsl": {
    "h": 87.059,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.34794,
    "c": 0.08058,
    "h": 130.6
  },
  "luminance": 0.04445
}

Semantic roles & 50–950 ramp

primary
#2B420F
secondary
#53307C
accent
#42E68C
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2B420F

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

Preview Lab → · Contrast checker → · Palette generator →

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