#2D5010#2D5010

#2D5010 is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 39.0% C 0.099 H 134.2°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#2D5010
RGBrgb(45, 80, 16)
HSLhsl(93, 67%, 19%)
HSVhsv(93, 80%, 31%)
CMYKcmyk(43.7%, 0%, 80%, 68.6%)
CIE-LABlab(30.24, -24.74, 31.78)
CIE-LCHlch(30.24, 40.27, 127.90°)
OKLaboklab(39.03% -0.0693 0.0714)
OKLCHoklch(39.03% 0.099 134.2)
XYZxyz(4.0443, 6.3324, 1.4993)
Luminance0.0633 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5010 #331050
analogous
#4D5010 #2D5010 #105013
triadic
#2D5010 #102D50 #50102D
tetradic
#2D5010 #104D50 #331050 #501310
square
#2D5010 #104D50 #331050 #501310
split-complementary
#2D5010 #131050 #50104D
monochromatic
#0E1A05 #101D06 #2D5010 #4A831A #66B624

Accessibility & contrast

On white

9.26
#2D5010 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D5010
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5010#FFFFFF#000000##FFFFFF
##2D50101.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534905
Deuteranopia (green-blind)
#4F4616
Tritanopia (blue-blind)
#2D4D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d5010;
/* rgb */ color: rgb(45, 80, 16);
/* oklch */ color: oklch(39.0% 0.099 134.2);
Tailwind
colors: {
  custom: {
    50: '#6a8153',
    500: '#2d5010',
    950: '#000000',
  },
}
SCSS
$custom: #2d5010;
$custom-light: #6a8153;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5010",
  "rgb": {
    "r": 45,
    "g": 80,
    "b": 16
  },
  "hsl": {
    "h": 92.813,
    "s": 66.667,
    "l": 18.824
  },
  "oklch": {
    "l": 0.39029,
    "c": 0.09949,
    "h": 134.2
  },
  "luminance": 0.06333
}

Semantic roles & 50–950 ramp

primary
#2D5010
secondary
#62328A
accent
#3EEA9C
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2D5010

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

Preview Lab → · Contrast checker → · Palette generator →

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