#28540D#28540D

#28540D is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 39.9% C 0.110 H 136.6°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#28540D
RGBrgb(40, 84, 13)
HSLhsl(97, 73%, 19%)
HSVhsv(97, 85%, 33%)
CMYKcmyk(52.4%, 0%, 84.5%, 67.1%)
CIE-LABlab(31.39, -28.68, 33.98)
CIE-LCHlch(31.39, 44.47, 130.16°)
OKLaboklab(39.9% -0.0798 0.0756)
OKLCHoklch(39.9% 0.11 136.6)
XYZxyz(4.1179, 6.8205, 1.4802)
Luminance0.0682 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28540D #390D54
analogous
#4C540D #28540D #0D5416
triadic
#28540D #0D2854 #540D28
tetradic
#28540D #0D4C54 #390D54 #54160D
square
#28540D #0D4C54 #390D54 #54160D
split-complementary
#28540D #160D54 #540D4C
monochromatic
#0D1A04 #0F1F05 #28540D #418915 #5ABE1D

Accessibility & contrast

On white

8.88
#28540D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#28540D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28540D
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28540D#FFFFFF#000000##FFFFFF
##28540D1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C00
Deuteranopia (green-blind)
#514915
Tritanopia (blue-blind)
#265147
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #28540d;
/* rgb */ color: rgb(40, 84, 13);
/* oklch */ color: oklch(39.9% 0.110 136.6);
Tailwind
colors: {
  custom: {
    50: '#678452',
    500: '#28540d',
    950: '#000000',
  },
}
SCSS
$custom: #28540d;
$custom-light: #678452;
$custom-dark: #000000;
JSON
{
  "hex": "#28540d",
  "rgb": {
    "r": 40,
    "g": 84,
    "b": 13
  },
  "hsl": {
    "h": 97.183,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.39904,
    "c": 0.1099,
    "h": 136.6
  },
  "luminance": 0.06821
}

Semantic roles & 50–950 ramp

primary
#28540D
secondary
#6A2E8F
accent
#38F0AA
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060B02
muted
#7A7C78

Preview Lab

Preview with #28540D

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

Preview Lab → · Contrast checker → · Palette generator →

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