#28520C#28520C

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

Color values

HEX#28520C
RGBrgb(40, 82, 12)
HSLhsl(96, 74%, 18%)
HSVhsv(96, 85%, 32%)
CMYKcmyk(51.2%, 0%, 85.4%, 67.8%)
CIE-LABlab(30.67, -27.84, 33.65)
CIE-LCHlch(30.67, 43.68, 129.60°)
OKLaboklab(39.31% -0.0776 0.0747)
OKLCHoklch(39.31% 0.108 136.1)
XYZxyz(3.9586, 6.5120, 1.3961)
Luminance0.0651 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28520C #360C52
analogous
#4B520C #28520C #0C5213
triadic
#28520C #0C2852 #520C28
tetradic
#28520C #0C4B52 #360C52 #52130C
square
#28520C #0C4B52 #360C52 #52130C
split-complementary
#28520C #130C52 #520C4B
monochromatic
#0D1B04 #0E1D04 #28520C #428714 #5CBD1C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #28520c;
/* rgb */ color: rgb(40, 82, 12);
/* oklch */ color: oklch(39.3% 0.108 136.1);
Tailwind
colors: {
  custom: {
    50: '#678351',
    500: '#28520c',
    950: '#000000',
  },
}
SCSS
$custom: #28520c;
$custom-light: #678351;
$custom-dark: #000000;
JSON
{
  "hex": "#28520c",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 12
  },
  "hsl": {
    "h": 96,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.39306,
    "c": 0.10773,
    "h": 136.1
  },
  "luminance": 0.06512
}

Semantic roles & 50–950 ramp

primary
#28520C
secondary
#672C8D
accent
#37F1A7
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #28520C

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

Preview Lab → · Contrast checker → · Palette generator →

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