#2A4B0C#2A4B0C

#2A4B0C is a dark, moderate yellow-green. Relative luminance 0.056; OKLCH L 37.4% C 0.097 H 133.7°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#2A4B0C
RGBrgb(42, 75, 12)
HSLhsl(91, 72%, 17%)
HSVhsv(91, 84%, 29%)
CMYKcmyk(44%, 0%, 84%, 70.6%)
CIE-LABlab(28.25, -23.80, 31.38)
CIE-LCHlch(28.25, 39.39, 127.17°)
OKLaboklab(37.35% -0.0669 0.0699)
OKLCHoklch(37.35% 0.097 133.7)
XYZxyz(3.5372, 5.5508, 1.2328)
Luminance0.0555 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4B0C #2D0C4B
analogous
#4A4B0C #2A4B0C #0C4B0E
triadic
#2A4B0C #0C2A4B #4B0C2A
tetradic
#2A4B0C #0C4A4B #2D0C4B #4B0E0C
square
#2A4B0C #0C4A4B #2D0C4B #4B0E0C
split-complementary
#2A4B0C #0E0C4B #4B0C4A
monochromatic
#0F1A04 #0F1A04 #2A4B0C #488014 #65B51D

Accessibility & contrast

On white

9.95
#2A4B0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2A4B0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4B0C
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4B0C#FFFFFF#000000##FFFFFF
##2A4B0C1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4401
Deuteranopia (green-blind)
#4A4213
Tritanopia (blue-blind)
#2A483F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a4b0c;
/* rgb */ color: rgb(42, 75, 12);
/* oklch */ color: oklch(37.4% 0.097 133.7);
Tailwind
colors: {
  custom: {
    50: '#677d50',
    500: '#2a4b0c',
    950: '#000000',
  },
}
SCSS
$custom: #2a4b0c;
$custom-light: #677d50;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4b0c",
  "rgb": {
    "r": 42,
    "g": 75,
    "b": 12
  },
  "hsl": {
    "h": 91.429,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.3735,
    "c": 0.09675,
    "h": 133.7
  },
  "luminance": 0.05551
}

Semantic roles & 50–950 ramp

primary
#2A4B0C
secondary
#5C2C87
accent
#39EF98
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2A4B0C

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

Preview Lab → · Contrast checker → · Palette generator →

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