#2D5014#2D5014

#2D5014 is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 39.1% C 0.097 H 134.8°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#2D5014
RGBrgb(45, 80, 20)
HSLhsl(95, 60%, 20%)
HSVhsv(95, 75%, 31%)
CMYKcmyk(43.7%, 0%, 75%, 68.6%)
CIE-LABlab(30.27, -24.40, 30.06)
CIE-LCHlch(30.27, 38.72, 129.07°)
OKLaboklab(39.07% -0.0681 0.0684)
OKLCHoklch(39.07% 0.097 134.8)
XYZxyz(4.0770, 6.3455, 1.6717)
Luminance0.0635 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5014 #371450
analogous
#4B5014 #2D5014 #145019
triadic
#2D5014 #142D50 #50142D
tetradic
#2D5014 #144B50 #371450 #501914
square
#2D5014 #144B50 #371450 #501914
split-complementary
#2D5014 #191450 #50144B
monochromatic
#0E1806 #111F08 #2D5014 #498120 #64B22C

Accessibility & contrast

On white

9.25
#2D5014 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2D5014 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5014
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5014#FFFFFF#000000##FFFFFF
##2D50141.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#53490B
Deuteranopia (green-blind)
#4E4619
Tritanopia (blue-blind)
#2C4D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d5014;
/* rgb */ color: rgb(45, 80, 20);
/* oklch */ color: oklch(39.1% 0.097 134.8);
Tailwind
colors: {
  custom: {
    50: '#698155',
    500: '#2d5014',
    950: '#000000',
  },
}
SCSS
$custom: #2d5014;
$custom-light: #698155;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5014",
  "rgb": {
    "r": 45,
    "g": 80,
    "b": 20
  },
  "hsl": {
    "h": 95,
    "s": 60,
    "l": 19.608
  },
  "oklch": {
    "l": 0.39066,
    "c": 0.09652,
    "h": 134.8
  },
  "luminance": 0.06346
}

Semantic roles & 50–950 ramp

primary
#2D5014
secondary
#673888
accent
#45E3A1
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2D5014

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

Preview Lab → · Contrast checker → · Palette generator →

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