#28540E#28540E

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

Color values

HEX#28540E
RGBrgb(40, 84, 14)
HSLhsl(98, 71%, 19%)
HSVhsv(98, 83%, 33%)
CMYKcmyk(52.4%, 0%, 83.3%, 67.1%)
CIE-LABlab(31.40, -28.61, 33.62)
CIE-LCHlch(31.40, 44.15, 130.40°)
OKLaboklab(39.91% -0.0795 0.075)
OKLCHoklch(39.91% 0.109 136.7)
XYZxyz(4.1245, 6.8232, 1.5150)
Luminance0.0682 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28540E #3A0E54
analogous
#4B540E #28540E #0E5417
triadic
#28540E #0E2854 #540E28
tetradic
#28540E #0E4B54 #3A0E54 #54170E
square
#28540E #0E4B54 #3A0E54 #54170E
split-complementary
#28540E #170E54 #540E4B
monochromatic
#0C1A04 #0F2005 #28540E #418817 #5ABD1F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28540E#FFFFFF#000000##FFFFFF
##28540E1.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)
#574C01
Deuteranopia (green-blind)
#514916
Tritanopia (blue-blind)
#265147
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #28540e;
/* rgb */ color: rgb(40, 84, 14);
/* oklch */ color: oklch(39.9% 0.109 136.7);
Tailwind
colors: {
  custom: {
    50: '#678453',
    500: '#28540e',
    950: '#000000',
  },
}
SCSS
$custom: #28540e;
$custom-light: #678453;
$custom-dark: #000000;
JSON
{
  "hex": "#28540e",
  "rgb": {
    "r": 40,
    "g": 84,
    "b": 14
  },
  "hsl": {
    "h": 97.714,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.39911,
    "c": 0.10931,
    "h": 136.7
  },
  "luminance": 0.06823
}

Semantic roles & 50–950 ramp

primary
#28540E
secondary
#6B2F8E
accent
#3AEEAB
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #28540E

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

Preview Lab → · Contrast checker → · Palette generator →

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