#2A4D0C#2A4D0C

#2A4D0C is a dark, moderate yellow-green. Relative luminance 0.058; OKLCH L 37.9% C 0.100 H 134.2°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#2A4D0C
RGBrgb(42, 77, 12)
HSLhsl(92, 73%, 17%)
HSVhsv(92, 84%, 30%)
CMYKcmyk(45.5%, 0%, 84.4%, 69.8%)
CIE-LABlab(28.97, -24.76, 32.07)
CIE-LCHlch(28.97, 40.52, 127.67°)
OKLaboklab(37.94% -0.0695 0.0714)
OKLCHoklch(37.94% 0.1 134.2)
XYZxyz(3.6750, 5.8263, 1.2787)
Luminance0.0583 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4D0C #2F0C4D
analogous
#4A4D0C #2A4D0C #0C4D0F
triadic
#2A4D0C #0C2A4D #4D0C2A
tetradic
#2A4D0C #0C4A4D #2F0C4D #4D0F0C
square
#2A4D0C #0C4A4D #2F0C4D #4D0F0C
split-complementary
#2A4D0C #0F0C4D #4D0C4A
monochromatic
#0E1A04 #0E1A04 #2A4D0C #478214 #64B71D

Accessibility & contrast

On white

9.70
#2A4D0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2A4D0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4D0C
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4D0C#FFFFFF#000000##FFFFFF
##2A4D0C1.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504601
Deuteranopia (green-blind)
#4C4313
Tritanopia (blue-blind)
#2A4A41
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a4d0c;
/* rgb */ color: rgb(42, 77, 12);
/* oklch */ color: oklch(37.9% 0.100 134.2);
Tailwind
colors: {
  custom: {
    50: '#677f51',
    500: '#2a4d0c',
    950: '#000000',
  },
}
SCSS
$custom: #2a4d0c;
$custom-light: #677f51;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4d0c",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 12
  },
  "hsl": {
    "h": 92.308,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.3794,
    "c": 0.0996,
    "h": 134.2
  },
  "luminance": 0.05827
}

Semantic roles & 50–950 ramp

primary
#2A4D0C
secondary
#5E2C89
accent
#38F09B
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2A4D0C

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

Preview Lab → · Contrast checker → · Palette generator →

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