#2D5815#2D5815

#2D5815 is a dark, moderate yellow-green. Relative luminance 0.076; OKLCH L 41.4% C 0.107 H 136.6°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#2D5815
RGBrgb(45, 88, 21)
HSLhsl(99, 61%, 21%)
HSVhsv(99, 76%, 35%)
CMYKcmyk(48.9%, 0%, 76.1%, 65.5%)
CIE-LABlab(33.12, -28.09, 32.57)
CIE-LCHlch(33.12, 43.01, 130.78°)
OKLaboklab(41.4% -0.078 0.0738)
OKLCHoklch(41.4% 0.107 136.6)
XYZxyz(4.7071, 7.5912, 1.9265)
Luminance0.0759 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5815 #401558
analogous
#4F5815 #2D5815 #15581F
triadic
#2D5815 #152D58 #58152D
tetradic
#2D5815 #154F58 #401558 #581F15
square
#2D5815 #154F58 #401558 #581F15
split-complementary
#2D5815 #1F1558 #58154F
monochromatic
#0D1906 #142709 #2D5815 #468921 #60BB2D

Accessibility & contrast

On white

8.34
#2D5815 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2D5815 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5815
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5815#FFFFFF#000000##FFFFFF
##2D58151.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B500A
Deuteranopia (green-blind)
#554D1B
Tritanopia (blue-blind)
#2B554B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2d5815;
/* rgb */ color: rgb(45, 88, 21);
/* oklch */ color: oklch(41.4% 0.107 136.6);
Tailwind
colors: {
  custom: {
    50: '#6a8757',
    500: '#2d5815',
    950: '#000000',
  },
}
SCSS
$custom: #2d5815;
$custom-light: #6a8757;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5815",
  "rgb": {
    "r": 45,
    "g": 88,
    "b": 21
  },
  "hsl": {
    "h": 98.507,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.41402,
    "c": 0.10739,
    "h": 136.6
  },
  "luminance": 0.07591
}

Semantic roles & 50–950 ramp

primary
#2D5815
secondary
#713990
accent
#43E5AB
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5815

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

Preview Lab → · Contrast checker → · Palette generator →

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