#2D5315#2D5315

#2D5315 is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 39.9% C 0.100 H 135.7°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#2D5315
RGBrgb(45, 83, 21)
HSLhsl(97, 60%, 20%)
HSVhsv(97, 75%, 33%)
CMYKcmyk(45.8%, 0%, 74.7%, 67.5%)
CIE-LABlab(31.34, -25.76, 30.73)
CIE-LCHlch(31.34, 40.10, 129.97°)
OKLaboklab(39.95% -0.0717 0.07)
OKLCHoklch(39.95% 0.1 135.7)
XYZxyz(4.3107, 6.7983, 1.7944)
Luminance0.0680 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5315 #3B1553
analogous
#4C5315 #2D5315 #15531C
triadic
#2D5315 #152D53 #53152D
tetradic
#2D5315 #154C53 #3B1553 #531C15
square
#2D5315 #154C53 #3B1553 #531C15
split-complementary
#2D5315 #1C1553 #53154C
monochromatic
#0D1806 #132209 #2D5315 #478421 #62B52E

Accessibility & contrast

On white

8.90
#2D5315 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D5315
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5315#FFFFFF#000000##FFFFFF
##2D53151.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d5315;
/* rgb */ color: rgb(45, 83, 21);
/* oklch */ color: oklch(39.9% 0.100 135.7);
Tailwind
colors: {
  custom: {
    50: '#6a8456',
    500: '#2d5315',
    950: '#000000',
  },
}
SCSS
$custom: #2d5315;
$custom-light: #6a8456;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5315",
  "rgb": {
    "r": 45,
    "g": 83,
    "b": 21
  },
  "hsl": {
    "h": 96.774,
    "s": 59.615,
    "l": 20.392
  },
  "oklch": {
    "l": 0.39949,
    "c": 0.10016,
    "h": 135.7
  },
  "luminance": 0.06799
}

Semantic roles & 50–950 ramp

primary
#2D5315
secondary
#6B398B
accent
#45E3A6
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5315

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

Preview Lab → · Contrast checker → · Palette generator →

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