#2A4F0D#2A4F0D

#2A4F0D is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.5% C 0.102 H 134.8°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#2A4F0D
RGBrgb(42, 79, 13)
HSLhsl(94, 72%, 18%)
HSVhsv(94, 84%, 31%)
CMYKcmyk(46.8%, 0%, 83.5%, 69%)
CIE-LABlab(29.70, -25.64, 32.39)
CIE-LCHlch(29.70, 41.31, 128.37°)
OKLaboklab(38.54% -0.0718 0.0722)
OKLCHoklch(38.54% 0.102 134.8)
XYZxyz(3.8234, 6.1130, 1.3592)
Luminance0.0611 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F0D #320D4F
analogous
#4B4F0D #2A4F0D #0D4F11
triadic
#2A4F0D #0D2A4F #4F0D2A
tetradic
#2A4F0D #0D4B4F #320D4F #4F110D
square
#2A4F0D #0D4B4F #320D4F #4F110D
split-complementary
#2A4F0D #110D4F #4F0D4B
monochromatic
#0E1A04 #0E1A04 #2A4F0D #468416 #62B81E

Accessibility & contrast

On white

9.45
#2A4F0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2A4F0D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F0D
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F0D#FFFFFF#000000##FFFFFF
##2A4F0D1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524801
Deuteranopia (green-blind)
#4D4514
Tritanopia (blue-blind)
#294C43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a4f0d;
/* rgb */ color: rgb(42, 79, 13);
/* oklch */ color: oklch(38.5% 0.102 134.8);
Tailwind
colors: {
  custom: {
    50: '#688051',
    500: '#2a4f0d',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f0d;
$custom-light: #688051;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f0d",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 13
  },
  "hsl": {
    "h": 93.636,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.38536,
    "c": 0.10181,
    "h": 134.8
  },
  "luminance": 0.06113
}

Semantic roles & 50–950 ramp

primary
#2A4F0D
secondary
#612E8A
accent
#39EE9F
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2A4F0D

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

Preview Lab → · Contrast checker → · Palette generator →

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