#2A450F#2A450F

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

Color values

HEX#2A450F
RGBrgb(42, 69, 15)
HSLhsl(90, 64%, 16%)
HSVhsv(90, 78%, 27%)
CMYKcmyk(39.1%, 0%, 78.3%, 72.9%)
CIE-LABlab(26.11, -20.57, 27.99)
CIE-LCHlch(26.11, 34.73, 126.30°)
OKLaboklab(35.61% -0.0578 0.0633)
OKLCHoklch(35.61% 0.086 132.4)
XYZxyz(3.1691, 4.7828, 1.2080)
Luminance0.0478 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A450F #2A0F45
analogous
#45450F #2A450F #0F450F
triadic
#2A450F #0F2A45 #450F2A
tetradic
#2A450F #0F4545 #2A0F45 #450F0F
square
#2A450F #0F4545 #2A0F45 #450F0F
split-complementary
#2A450F #0F0F45 #450F45
monochromatic
#0F1905 #0F1905 #2A450F #49771A #67AA25

Accessibility & contrast

On white

10.73
#2A450F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2A450F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A450F
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A450F#FFFFFF#000000##FFFFFF
##2A450F1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#483F07
Deuteranopia (green-blind)
#443D14
Tritanopia (blue-blind)
#2A423A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a450f;
/* rgb */ color: rgb(42, 69, 15);
/* oklch */ color: oklch(35.6% 0.086 132.4);
Tailwind
colors: {
  custom: {
    50: '#667951',
    500: '#2a450f',
    950: '#000000',
  },
}
SCSS
$custom: #2a450f;
$custom-light: #667951;
$custom-dark: #000000;
JSON
{
  "hex": "#2a450f",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 15
  },
  "hsl": {
    "h": 90,
    "s": 64.286,
    "l": 16.471
  },
  "oklch": {
    "l": 0.35606,
    "c": 0.08578,
    "h": 132.4
  },
  "luminance": 0.04783
}

Semantic roles & 50–950 ramp

primary
#2A450F
secondary
#58307F
accent
#41E794
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2A450F

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

Preview Lab → · Contrast checker → · Palette generator →

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