#2D5317#2D5317

#2D5317 is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 40.0% C 0.099 H 136.1°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#2D5317
RGBrgb(45, 83, 23)
HSLhsl(98, 57%, 21%)
HSVhsv(98, 72%, 33%)
CMYKcmyk(45.8%, 0%, 72.3%, 67.5%)
CIE-LABlab(31.36, -25.57, 29.82)
CIE-LCHlch(31.36, 39.28, 130.61°)
OKLaboklab(39.97% -0.071 0.0684)
OKLCHoklch(39.97% 0.099 136.1)
XYZxyz(4.3300, 6.8060, 1.8960)
Luminance0.0681 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5317 #3D1753
analogous
#4B5317 #2D5317 #17531F
triadic
#2D5317 #172D53 #53172D
tetradic
#2D5317 #174B53 #3D1753 #531F17
square
#2D5317 #174B53 #3D1753 #531F17
split-complementary
#2D5317 #1F1753 #53174B
monochromatic
#0D1807 #13230A #2D5317 #478324 #61B332

Accessibility & contrast

On white

8.89
#2D5317 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2D5317 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5317
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5317#FFFFFF#000000##FFFFFF
##2D53171.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C0F
Deuteranopia (green-blind)
#51491C
Tritanopia (blue-blind)
#2C5047
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d5317;
/* rgb */ color: rgb(45, 83, 23);
/* oklch */ color: oklch(40.0% 0.099 136.1);
Tailwind
colors: {
  custom: {
    50: '#6a8457',
    500: '#2d5317',
    950: '#000000',
  },
}
SCSS
$custom: #2d5317;
$custom-light: #6a8457;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5317",
  "rgb": {
    "r": 45,
    "g": 83,
    "b": 23
  },
  "hsl": {
    "h": 98,
    "s": 56.604,
    "l": 20.784
  },
  "oklch": {
    "l": 0.39969,
    "c": 0.09855,
    "h": 136.1
  },
  "luminance": 0.06806
}

Semantic roles & 50–950 ramp

primary
#2D5317
secondary
#6D3C8A
accent
#48E0A8
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5317

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

Preview Lab → · Contrast checker → · Palette generator →

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