#2D5515#2D5515

#2D5515 is a dark, moderate yellow-green. Relative luminance 0.071; OKLCH L 40.5% C 0.103 H 136.1°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#2D5515
RGBrgb(45, 85, 21)
HSLhsl(98, 60%, 21%)
HSVhsv(98, 75%, 33%)
CMYKcmyk(47.1%, 0%, 75.3%, 66.7%)
CIE-LABlab(32.05, -26.70, 31.47)
CIE-LCHlch(32.05, 41.27, 130.31°)
OKLaboklab(40.53% -0.0742 0.0715)
OKLCHoklch(40.53% 0.103 136.1)
XYZxyz(4.4659, 7.1088, 1.8461)
Luminance0.0711 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5515 #3D1555
analogous
#4D5515 #2D5515 #15551D
triadic
#2D5515 #152D55 #55152D
tetradic
#2D5515 #154D55 #3D1555 #551D15
square
#2D5515 #154D55 #3D1555 #551D15
split-complementary
#2D5515 #1D1555 #55154D
monochromatic
#0D1906 #132409 #2D5515 #478621 #61B72D

Accessibility & contrast

On white

8.67
#2D5515 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2D5515 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5515
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5515#FFFFFF#000000##FFFFFF
##2D55151.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D0B
Deuteranopia (green-blind)
#534A1B
Tritanopia (blue-blind)
#2B5248
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d5515;
/* rgb */ color: rgb(45, 85, 21);
/* oklch */ color: oklch(40.5% 0.103 136.1);
Tailwind
colors: {
  custom: {
    50: '#6a8557',
    500: '#2d5515',
    950: '#000000',
  },
}
SCSS
$custom: #2d5515;
$custom-light: #6a8557;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5515",
  "rgb": {
    "r": 45,
    "g": 85,
    "b": 21
  },
  "hsl": {
    "h": 97.5,
    "s": 60.377,
    "l": 20.784
  },
  "oklch": {
    "l": 0.4053,
    "c": 0.10308,
    "h": 136.1
  },
  "luminance": 0.07109
}

Semantic roles & 50–950 ramp

primary
#2D5515
secondary
#6D398D
accent
#44E4A8
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2D5515

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

Preview Lab → · Contrast checker → · Palette generator →

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