#2D5717#2D5717

#2D5717 is a dark, moderate yellow-green. Relative luminance 0.074; OKLCH L 41.1% C 0.104 H 136.8°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#2D5717
RGBrgb(45, 87, 23)
HSLhsl(99, 58%, 22%)
HSVhsv(99, 74%, 34%)
CMYKcmyk(48.3%, 0%, 73.6%, 65.9%)
CIE-LABlab(32.78, -27.45, 31.32)
CIE-LCHlch(32.78, 41.65, 131.23°)
OKLaboklab(41.13% -0.0761 0.0715)
OKLCHoklch(41.13% 0.104 136.8)
XYZxyz(4.6449, 7.4359, 2.0010)
Luminance0.0744 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5717 #411757
analogous
#4D5717 #2D5717 #175721
triadic
#2D5717 #172D57 #57172D
tetradic
#2D5717 #174D57 #411757 #572117
square
#2D5717 #174D57 #411757 #572117
split-complementary
#2D5717 #211757 #57174D
monochromatic
#0D1806 #14270A #2D5717 #468724 #5FB831

Accessibility & contrast

On white

8.44
#2D5717 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2D5717 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5717
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5717#FFFFFF#000000##FFFFFF
##2D57171.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F0E
Deuteranopia (green-blind)
#544C1D
Tritanopia (blue-blind)
#2B544A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2d5717;
/* rgb */ color: rgb(45, 87, 23);
/* oklch */ color: oklch(41.1% 0.104 136.8);
Tailwind
colors: {
  custom: {
    50: '#6a8758',
    500: '#2d5717',
    950: '#000000',
  },
}
SCSS
$custom: #2d5717;
$custom-light: #6a8758;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5717",
  "rgb": {
    "r": 45,
    "g": 87,
    "b": 23
  },
  "hsl": {
    "h": 99.375,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.41131,
    "c": 0.10443,
    "h": 136.8
  },
  "luminance": 0.07436
}

Semantic roles & 50–950 ramp

primary
#2D5717
secondary
#723C8E
accent
#46E1AC
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5717

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

Preview Lab → · Contrast checker → · Palette generator →

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