#2D5A14#2D5A14

#2D5A14 is a dark, moderate yellow-green. Relative luminance 0.079; OKLCH L 42.0% C 0.111 H 136.7°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#2D5A14
RGBrgb(45, 90, 20)
HSLhsl(99, 64%, 22%)
HSVhsv(99, 78%, 35%)
CMYKcmyk(50%, 0%, 77.8%, 64.7%)
CIE-LABlab(33.82, -29.09, 33.71)
CIE-LCHlch(33.82, 44.52, 130.79°)
OKLaboklab(41.97% -0.0808 0.0761)
OKLCHoklch(41.97% 0.111 136.7)
XYZxyz(4.8645, 7.9204, 1.9342)
Luminance0.0792 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5A14 #41145A
analogous
#505A14 #2D5A14 #145A1E
triadic
#2D5A14 #142D5A #5A142D
tetradic
#2D5A14 #14505A #41145A #5A1E14
square
#2D5A14 #14505A #41145A #5A1E14
split-complementary
#2D5A14 #1E145A #5A1450
monochromatic
#0D1906 #142809 #2D5A14 #468C1F #5FBE2A

Accessibility & contrast

On white

8.13
#2D5A14 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2D5A14 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5A14
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5A14#FFFFFF#000000##FFFFFF
##2D5A141.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5208
Deuteranopia (green-blind)
#574E1B
Tritanopia (blue-blind)
#2B564C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2d5a14;
/* rgb */ color: rgb(45, 90, 20);
/* oklch */ color: oklch(42.0% 0.111 136.7);
Tailwind
colors: {
  custom: {
    50: '#6b8957',
    500: '#2d5a14',
    950: '#000000',
  },
}
SCSS
$custom: #2d5a14;
$custom-light: #6b8957;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5a14",
  "rgb": {
    "r": 45,
    "g": 90,
    "b": 20
  },
  "hsl": {
    "h": 98.571,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.41974,
    "c": 0.11094,
    "h": 136.7
  },
  "luminance": 0.07921
}

Semantic roles & 50–950 ramp

primary
#2D5A14
secondary
#723892
accent
#41E7AC
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5A14

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

Preview Lab → · Contrast checker → · Palette generator →

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