#28520B#28520B

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

Color values

HEX#28520B
RGBrgb(40, 82, 11)
HSLhsl(95, 76%, 18%)
HSVhsv(95, 87%, 32%)
CMYKcmyk(51.2%, 0%, 86.6%, 67.8%)
CIE-LABlab(30.66, -27.91, 34.00)
CIE-LCHlch(30.66, 43.98, 129.38°)
OKLaboklab(39.3% -0.0778 0.0753)
OKLCHoklch(39.3% 0.108 136)
XYZxyz(3.9527, 6.5096, 1.3647)
Luminance0.0651 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28520B #350B52
analogous
#4B520B #28520B #0B5211
triadic
#28520B #0B2852 #520B28
tetradic
#28520B #0B4B52 #350B52 #52110B
square
#28520B #0B4B52 #350B52 #52110B
split-complementary
#28520B #110B52 #520B4B
monochromatic
#0D1B04 #0E1C04 #28520B #428812 #5DBE19

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28520B#FFFFFF#000000##FFFFFF
##28520B1.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)
#504713
Tritanopia (blue-blind)
#264F45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #28520b;
/* rgb */ color: rgb(40, 82, 11);
/* oklch */ color: oklch(39.3% 0.108 136.0);
Tailwind
colors: {
  custom: {
    50: '#678351',
    500: '#28520b',
    950: '#000000',
  },
}
SCSS
$custom: #28520b;
$custom-light: #678351;
$custom-dark: #000000;
JSON
{
  "hex": "#28520b",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 11
  },
  "hsl": {
    "h": 95.493,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.39299,
    "c": 0.10828,
    "h": 136
  },
  "luminance": 0.0651
}

Semantic roles & 50–950 ramp

primary
#28520B
secondary
#652B8E
accent
#35F3A5
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #28520B

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

Preview Lab → · Contrast checker → · Palette generator →

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