#2A4E15#2A4E15

#2A4E15 is a dark, moderate yellow-green. Relative luminance 0.060; OKLCH L 38.3% C 0.095 H 136.0°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#2A4E15
RGBrgb(42, 78, 21)
HSLhsl(98, 58%, 19%)
HSVhsv(98, 73%, 31%)
CMYKcmyk(46.2%, 0%, 73.1%, 69.4%)
CIE-LABlab(29.40, -24.50, 28.63)
CIE-LCHlch(29.40, 37.68, 130.56°)
OKLaboklab(38.31% -0.068 0.0656)
OKLCHoklch(38.31% 0.095 136)
XYZxyz(3.8145, 5.9949, 1.6655)
Luminance0.0600 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E15 #39154E
analogous
#474E15 #2A4E15 #154E1D
triadic
#2A4E15 #152A4E #4E152A
tetradic
#2A4E15 #15474E #39154E #4E1D15
square
#2A4E15 #15474E #39154E #4E1D15
split-complementary
#2A4E15 #1D154E #4E1547
monochromatic
#0D1806 #101E08 #2A4E15 #447E22 #5EAE2F

Accessibility & contrast

On white

9.55
#2A4E15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2A4E15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E15
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E15#FFFFFF#000000##FFFFFF
##2A4E151.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#51470D
Deuteranopia (green-blind)
#4C441A
Tritanopia (blue-blind)
#294B42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4e15;
/* rgb */ color: rgb(42, 78, 21);
/* oklch */ color: oklch(38.3% 0.095 136.0);
Tailwind
colors: {
  custom: {
    50: '#678056',
    500: '#2a4e15',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e15;
$custom-light: #678056;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e15",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 21
  },
  "hsl": {
    "h": 97.895,
    "s": 57.576,
    "l": 19.412
  },
  "oklch": {
    "l": 0.38314,
    "c": 0.09451,
    "h": 136
  },
  "luminance": 0.05995
}

Semantic roles & 50–950 ramp

primary
#2A4E15
secondary
#6A3986
accent
#47E1A8
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A4E15

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

Preview Lab → · Contrast checker → · Palette generator →

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