#2A4C0D#2A4C0D

#2A4C0D is a dark, moderate yellow-green. Relative luminance 0.057; OKLCH L 37.7% C 0.098 H 134.1°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#2A4C0D
RGBrgb(42, 76, 13)
HSLhsl(92, 71%, 17%)
HSVhsv(92, 83%, 30%)
CMYKcmyk(44.7%, 0%, 82.9%, 70.2%)
CIE-LABlab(28.62, -24.21, 31.35)
CIE-LCHlch(28.62, 39.61, 127.68°)
OKLaboklab(37.65% -0.0679 0.07)
OKLCHoklch(37.65% 0.098 134.1)
XYZxyz(3.6119, 5.6900, 1.2887)
Luminance0.0569 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4C0D #2F0D4C
analogous
#4A4C0D #2A4C0D #0D4C0F
triadic
#2A4C0D #0D2A4C #4C0D2A
tetradic
#2A4C0D #0D4A4C #2F0D4C #4C0F0D
square
#2A4C0D #0D4A4C #2F0D4C #4C0F0D
split-complementary
#2A4C0D #0F0D4C #4C0D4A
monochromatic
#0E1A04 #0E1A04 #2A4C0D #478016 #64B51F

Accessibility & contrast

On white

9.82
#2A4C0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2A4C0D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4C0D
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4C0D#FFFFFF#000000##FFFFFF
##2A4C0D1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4502
Deuteranopia (green-blind)
#4B4213
Tritanopia (blue-blind)
#2A4940
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a4c0d;
/* rgb */ color: rgb(42, 76, 13);
/* oklch */ color: oklch(37.7% 0.098 134.1);
Tailwind
colors: {
  custom: {
    50: '#677e51',
    500: '#2a4c0d',
    950: '#000000',
  },
}
SCSS
$custom: #2a4c0d;
$custom-light: #677e51;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4c0d",
  "rgb": {
    "r": 42,
    "g": 76,
    "b": 13
  },
  "hsl": {
    "h": 92.381,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.37652,
    "c": 0.09754,
    "h": 134.1
  },
  "luminance": 0.0569
}

Semantic roles & 50–950 ramp

primary
#2A4C0D
secondary
#5E2E87
accent
#3AEE9B
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2A4C0D

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

Preview Lab → · Contrast checker → · Palette generator →

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