#28520D#28520D

#28520D is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.3% C 0.107 H 136.2°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#28520D
RGBrgb(40, 82, 13)
HSLhsl(97, 73%, 19%)
HSVhsv(97, 84%, 32%)
CMYKcmyk(51.2%, 0%, 84.1%, 67.8%)
CIE-LABlab(30.68, -27.78, 33.30)
CIE-LCHlch(30.68, 43.36, 129.84°)
OKLaboklab(39.31% -0.0774 0.0741)
OKLCHoklch(39.31% 0.107 136.2)
XYZxyz(3.9649, 6.5145, 1.4292)
Luminance0.0651 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28520D #370D52
analogous
#4A520D #28520D #0D5214
triadic
#28520D #0D2852 #520D28
tetradic
#28520D #0D4A52 #370D52 #52140D
square
#28520D #0D4A52 #370D52 #52140D
split-complementary
#28520D #140D52 #520D4A
monochromatic
#0D1A04 #0E1D05 #28520D #428715 #5CBC1E

Accessibility & contrast

On white

9.12
#28520D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#28520D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28520D
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28520D#FFFFFF#000000##FFFFFF
##28520D1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A00
Deuteranopia (green-blind)
#504715
Tritanopia (blue-blind)
#264F45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #28520d;
/* rgb */ color: rgb(40, 82, 13);
/* oklch */ color: oklch(39.3% 0.107 136.2);
Tailwind
colors: {
  custom: {
    50: '#678352',
    500: '#28520d',
    950: '#000000',
  },
}
SCSS
$custom: #28520d;
$custom-light: #678352;
$custom-dark: #000000;
JSON
{
  "hex": "#28520d",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 13
  },
  "hsl": {
    "h": 96.522,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.39313,
    "c": 0.10716,
    "h": 136.2
  },
  "luminance": 0.06515
}

Semantic roles & 50–950 ramp

primary
#28520D
secondary
#682E8D
accent
#38EFA8
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #28520D

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

Preview Lab → · Contrast checker → · Palette generator →

#28520D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva