#2D5017#2D5017

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

Color values

HEX#2D5017
RGBrgb(45, 80, 23)
HSLhsl(97, 55%, 20%)
HSVhsv(97, 71%, 31%)
CMYKcmyk(43.7%, 0%, 71.2%, 68.6%)
CIE-LABlab(30.30, -24.12, 28.67)
CIE-LCHlch(30.30, 37.47, 130.07°)
OKLaboklab(39.1% -0.067 0.0659)
OKLCHoklch(39.1% 0.094 135.5)
XYZxyz(4.1054, 6.3569, 1.8211)
Luminance0.0636 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5017 #3A1750
analogous
#495017 #2D5017 #17501D
triadic
#2D5017 #172D50 #50172D
tetradic
#2D5017 #174950 #3A1750 #501D17
square
#2D5017 #174950 #3A1750 #501D17
split-complementary
#2D5017 #1D1750 #501749
monochromatic
#0D1807 #122009 #2D5017 #488025 #62AF32

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D5017#FFFFFF#000000##FFFFFF
##2D50171.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)
#534910
Deuteranopia (green-blind)
#4E461C
Tritanopia (blue-blind)
#2C4D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d5017;
/* rgb */ color: rgb(45, 80, 23);
/* oklch */ color: oklch(39.1% 0.094 135.5);
Tailwind
colors: {
  custom: {
    50: '#698157',
    500: '#2d5017',
    950: '#000000',
  },
}
SCSS
$custom: #2d5017;
$custom-light: #698157;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5017",
  "rgb": {
    "r": 45,
    "g": 80,
    "b": 23
  },
  "hsl": {
    "h": 96.842,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.39097,
    "c": 0.09403,
    "h": 135.5
  },
  "luminance": 0.06357
}

Semantic roles & 50–950 ramp

primary
#2D5017
secondary
#6A3C87
accent
#49DFA5
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2D5017

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

Preview Lab → · Contrast checker → · Palette generator →

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