#2B420C#2B420C

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

Color values

HEX#2B420C
RGBrgb(43, 66, 12)
HSLhsl(86, 69%, 15%)
HSVhsv(86, 82%, 26%)
CMYKcmyk(34.8%, 0%, 81.8%, 74.1%)
CIE-LABlab(25.07, -18.80, 28.29)
CIE-LCHlch(25.07, 33.97, 123.60°)
OKLaboklab(34.77% -0.0534 0.0634)
OKLCHoklch(34.77% 0.083 130.1)
XYZxyz(3.0108, 4.4365, 1.0454)
Luminance0.0444 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B420C #230C42
analogous
#423E0C #2B420C #10420C
triadic
#2B420C #0C2B42 #420C2B
tetradic
#2B420C #0C423E #230C42 #420C10
square
#2B420C #0C423E #230C42 #420C10
split-complementary
#2B420C #0C1042 #3E0C42
monochromatic
#111A05 #111A05 #2B420C #4D7615 #6EAA1F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B420C#FFFFFF#000000##FFFFFF
##2B420C1.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)
#453D04
Deuteranopia (green-blind)
#423B11
Tritanopia (blue-blind)
#2C3F38
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2b420c;
/* rgb */ color: rgb(43, 66, 12);
/* oklch */ color: oklch(34.8% 0.083 130.1);
Tailwind
colors: {
  custom: {
    50: '#67764f',
    500: '#2b420c',
    950: '#000000',
  },
}
SCSS
$custom: #2b420c;
$custom-light: #67764f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b420c",
  "rgb": {
    "r": 43,
    "g": 66,
    "b": 12
  },
  "hsl": {
    "h": 85.556,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.34766,
    "c": 0.08292,
    "h": 130.1
  },
  "luminance": 0.04437
}

Semantic roles & 50–950 ramp

primary
#2B420C
secondary
#4F2C7E
accent
#3CEC87
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2B420C

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

Preview Lab → · Contrast checker → · Palette generator →

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