#2D5915#2D5915

#2D5915 is a dark, moderate yellow-green. Relative luminance 0.078; OKLCH L 41.7% C 0.109 H 136.7°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#2D5915
RGBrgb(45, 89, 21)
HSLhsl(99, 62%, 22%)
HSVhsv(99, 76%, 35%)
CMYKcmyk(49.4%, 0%, 76.4%, 65.1%)
CIE-LABlab(33.47, -28.55, 32.93)
CIE-LCHlch(33.47, 43.58, 130.93°)
OKLaboklab(41.69% -0.0792 0.0746)
OKLCHoklch(41.69% 0.109 136.7)
XYZxyz(4.7898, 7.7565, 1.9541)
Luminance0.0776 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5915 #411559
analogous
#4F5915 #2D5915 #15591F
triadic
#2D5915 #152D59 #59152D
tetradic
#2D5915 #154F59 #411559 #591F15
square
#2D5915 #154F59 #411559 #591F15
split-complementary
#2D5915 #1F1559 #59154F
monochromatic
#0D1906 #142709 #2D5915 #468B21 #5FBC2C

Accessibility & contrast

On white

8.23
#2D5915 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2D5915 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5915
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5915#FFFFFF#000000##FFFFFF
##2D59151.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C510A
Deuteranopia (green-blind)
#564D1B
Tritanopia (blue-blind)
#2B564C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d5915;
/* rgb */ color: rgb(45, 89, 21);
/* oklch */ color: oklch(41.7% 0.109 136.7);
Tailwind
colors: {
  custom: {
    50: '#6b8857',
    500: '#2d5915',
    950: '#000000',
  },
}
SCSS
$custom: #2d5915;
$custom-light: #6b8857;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5915",
  "rgb": {
    "r": 45,
    "g": 89,
    "b": 21
  },
  "hsl": {
    "h": 98.824,
    "s": 61.818,
    "l": 21.569
  },
  "oklch": {
    "l": 0.41693,
    "c": 0.10882,
    "h": 136.7
  },
  "luminance": 0.07757
}

Semantic roles & 50–950 ramp

primary
#2D5915
secondary
#723991
accent
#43E5AC
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5915

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

Preview Lab → · Contrast checker → · Palette generator →

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