#28520F#28520F

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

Color values

HEX#28520F
RGBrgb(40, 82, 15)
HSLhsl(98, 69%, 19%)
HSVhsv(98, 82%, 32%)
CMYKcmyk(51.2%, 0%, 81.7%, 67.8%)
CIE-LABlab(30.69, -27.64, 32.54)
CIE-LCHlch(30.69, 42.70, 130.34°)
OKLaboklab(39.33% -0.0768 0.0729)
OKLCHoklch(39.33% 0.106 136.5)
XYZxyz(3.9785, 6.5199, 1.5007)
Luminance0.0652 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28520F #390F52
analogous
#4A520F #28520F #0F5218
triadic
#28520F #0F2852 #520F28
tetradic
#28520F #0F4A52 #390F52 #52180F
square
#28520F #0F4A52 #390F52 #52180F
split-complementary
#28520F #180F52 #520F4A
monochromatic
#0D1A05 #0F1E06 #28520F #418618 #5AB922

Accessibility & contrast

On white

9.11
#28520F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28520F
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28520F#FFFFFF#000000##FFFFFF
##28520F1.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28520f;
/* rgb */ color: rgb(40, 82, 15);
/* oklch */ color: oklch(39.3% 0.106 136.5);
Tailwind
colors: {
  custom: {
    50: '#678353',
    500: '#28520f',
    950: '#000000',
  },
}
SCSS
$custom: #28520f;
$custom-light: #678353;
$custom-dark: #000000;
JSON
{
  "hex": "#28520f",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 15
  },
  "hsl": {
    "h": 97.612,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.39328,
    "c": 0.10593,
    "h": 136.5
  },
  "luminance": 0.0652
}

Semantic roles & 50–950 ramp

primary
#28520F
secondary
#6A318C
accent
#3CECAA
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #28520F

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

Preview Lab → · Contrast checker → · Palette generator →

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