#2A450B#2A450B

#2A450B is a dark, moderate yellow-green. Relative luminance 0.048; OKLCH L 35.6% C 0.089 H 131.7°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#2A450B
RGBrgb(42, 69, 11)
HSLhsl(88, 73%, 16%)
HSVhsv(88, 84%, 27%)
CMYKcmyk(39.1%, 0%, 84.1%, 72.9%)
CIE-LABlab(26.08, -20.87, 29.68)
CIE-LCHlch(26.08, 36.28, 125.12°)
OKLaboklab(35.57% -0.059 0.0662)
OKLCHoklch(35.57% 0.089 131.7)
XYZxyz(3.1433, 4.7725, 1.0721)
Luminance0.0477 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A450B #260B45
analogous
#45430B #2A450B #0D450B
triadic
#2A450B #0B2A45 #450B2A
tetradic
#2A450B #0B4543 #260B45 #450B0D
square
#2A450B #0B4543 #260B45 #450B0D
split-complementary
#2A450B #0B0D45 #430B45
monochromatic
#101A04 #101A04 #2A450B #4A7A13 #6AAF1C

Accessibility & contrast

On white

10.74
#2A450B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2A450B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A450B
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A450B#FFFFFF#000000##FFFFFF
##2A450B1.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#483F02
Deuteranopia (green-blind)
#453D11
Tritanopia (blue-blind)
#2B423A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a450b;
/* rgb */ color: rgb(42, 69, 11);
/* oklch */ color: oklch(35.6% 0.089 131.7);
Tailwind
colors: {
  custom: {
    50: '#66794f',
    500: '#2a450b',
    950: '#000000',
  },
}
SCSS
$custom: #2a450b;
$custom-light: #66794f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a450b",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 11
  },
  "hsl": {
    "h": 87.931,
    "s": 72.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.35571,
    "c": 0.08869,
    "h": 131.7
  },
  "luminance": 0.04773
}

Semantic roles & 50–950 ramp

primary
#2A450B
secondary
#532A81
accent
#39EF8E
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2A450B

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

Preview Lab → · Contrast checker → · Palette generator →

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