#2A421B#2A421B

#2A421B is a dark, moderate yellow-green. Relative luminance 0.045; OKLCH L 34.9% C 0.069 H 134.8°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#2A421B
RGBrgb(42, 66, 27)
HSLhsl(97, 42%, 18%)
HSVhsv(97, 59%, 26%)
CMYKcmyk(36.4%, 0%, 59.1%, 74.1%)
CIE-LABlab(25.16, -17.65, 20.63)
CIE-LCHlch(25.16, 27.15, 130.55°)
OKLaboklab(34.88% -0.0488 0.0492)
OKLCHoklch(34.88% 0.069 134.8)
XYZxyz(3.1008, 4.4677, 1.7357)
Luminance0.0447 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A421B #331B42
analogous
#3D421B #2A421B #1B421F
triadic
#2A421B #1B2A42 #421B2A
tetradic
#2A421B #1B3D42 #331B42 #421F1B
square
#2A421B #1B3D42 #331B42 #421F1B
split-complementary
#2A421B #1F1B42 #421B3D
monochromatic
#0E1609 #0E1709 #2A421B #466D2D #61993F

Accessibility & contrast

On white

11.09
#2A421B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A421B
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A421B#FFFFFF#000000##FFFFFF
##2A421B1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443D17
Deuteranopia (green-blind)
#413B1E
Tritanopia (blue-blind)
#2A4039
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a421b;
/* rgb */ color: rgb(42, 66, 27);
/* oklch */ color: oklch(34.9% 0.069 134.8);
Tailwind
colors: {
  custom: {
    50: '#657658',
    500: '#2a421b',
    950: '#000000',
  },
}
SCSS
$custom: #2a421b;
$custom-light: #657658;
$custom-dark: #000000;
JSON
{
  "hex": "#2a421b",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 27
  },
  "hsl": {
    "h": 96.923,
    "s": 41.935,
    "l": 18.235
  },
  "oklch": {
    "l": 0.34879,
    "c": 0.06927,
    "h": 134.8
  },
  "luminance": 0.04468
}

Semantic roles & 50–950 ramp

primary
#2A421B
secondary
#634178
accent
#56D2A2
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060803
muted
#7A7B78

Preview Lab

Preview with #2A421B

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

Preview Lab → · Contrast checker → · Palette generator →

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