#2A3908#2A3908

#2A3908 is a dark, moderate yellow-green. Relative luminance 0.034; OKLCH L 32.0% C 0.073 H 125.4°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#2A3908
RGBrgb(42, 57, 8)
HSLhsl(78, 75%, 13%)
HSVhsv(78, 86%, 22%)
CMYKcmyk(26.3%, 0%, 86%, 77.6%)
CIE-LABlab(21.71, -14.61, 26.52)
CIE-LCHlch(21.71, 30.28, 118.86°)
OKLaboklab(32.01% -0.0423 0.0594)
OKLCHoklch(32.01% 0.073 125.4)
XYZxyz(2.4618, 3.4360, 0.7632)
Luminance0.0344 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3908 #170839
analogous
#392F08 #2A3908 #123908
triadic
#2A3908 #082A39 #39082A
tetradic
#2A3908 #08392F #170839 #390812
square
#2A3908 #08392F #170839 #390812
split-complementary
#2A3908 #081239 #2F0839
monochromatic
#141B04 #141B04 #2A3908 #526F10 #79A417

Accessibility & contrast

On white

12.45
#2A3908 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2A3908 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3908
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3908#FFFFFF#000000##FFFFFF
##2A39081.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3502
Deuteranopia (green-blind)
#3B340C
Tritanopia (blue-blind)
#2C3630
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a3908;
/* rgb */ color: rgb(42, 57, 8);
/* oklch */ color: oklch(32.0% 0.073 125.4);
Tailwind
colors: {
  custom: {
    50: '#656f4c',
    500: '#2a3908',
    950: '#000000',
  },
}
SCSS
$custom: #2a3908;
$custom-light: #656f4c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3908",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 8
  },
  "hsl": {
    "h": 78.367,
    "s": 75.385,
    "l": 12.745
  },
  "oklch": {
    "l": 0.32014,
    "c": 0.07295,
    "h": 125.4
  },
  "luminance": 0.03436
}

Semantic roles & 50–950 ramp

primary
#2A3908
secondary
#3E2578
accent
#36F26F
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#060701
muted
#7A7A77

Preview Lab

Preview with #2A3908

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

Preview Lab → · Contrast checker → · Palette generator →

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