#2A4108#2A4108

#2A4108 is a dark, moderate yellow-green. Relative luminance 0.043; OKLCH L 34.4% C 0.085 H 129.7°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#2A4108
RGBrgb(42, 65, 8)
HSLhsl(84, 78%, 14%)
HSVhsv(84, 88%, 25%)
CMYKcmyk(35.4%, 0%, 87.7%, 74.5%)
CIE-LABlab(24.61, -19.00, 29.48)
CIE-LCHlch(24.61, 35.07, 122.80°)
OKLaboklab(34.37% -0.0542 0.0652)
OKLCHoklch(34.37% 0.085 129.7)
XYZxyz(2.8890, 4.2903, 0.9056)
Luminance0.0429 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4108 #1F0841
analogous
#413C08 #2A4108 #0D4108
triadic
#2A4108 #082A41 #41082A
tetradic
#2A4108 #08413C #1F0841 #41080D
square
#2A4108 #08413C #1F0841 #41080D
split-complementary
#2A4108 #080D41 #3C0841
monochromatic
#121B03 #121B03 #2A4108 #4D770F #70AE15

Accessibility & contrast

On white

11.30
#2A4108 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2A4108 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4108
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4108#FFFFFF#000000##FFFFFF
##2A41081.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453B00
Deuteranopia (green-blind)
#413A0E
Tritanopia (blue-blind)
#2B3E36
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a4108;
/* rgb */ color: rgb(42, 65, 8);
/* oklch */ color: oklch(34.4% 0.085 129.7);
Tailwind
colors: {
  custom: {
    50: '#66754d',
    500: '#2a4108',
    950: '#000000',
  },
}
SCSS
$custom: #2a4108;
$custom-light: #66754d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4108",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 8
  },
  "hsl": {
    "h": 84.211,
    "s": 78.082,
    "l": 14.314
  },
  "oklch": {
    "l": 0.34368,
    "c": 0.08481,
    "h": 129.7
  },
  "luminance": 0.0429
}

Semantic roles & 50–950 ramp

primary
#2A4108
secondary
#4A257F
accent
#33F581
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #2A4108

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

Preview Lab → · Contrast checker → · Palette generator →

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