#28540F#28540F

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

Color values

HEX#28540F
RGBrgb(40, 84, 15)
HSLhsl(98, 70%, 19%)
HSVhsv(98, 82%, 33%)
CMYKcmyk(52.4%, 0%, 82.1%, 67.1%)
CIE-LABlab(31.41, -28.54, 33.25)
CIE-LCHlch(31.41, 43.82, 130.64°)
OKLaboklab(39.92% -0.0793 0.0744)
OKLCHoklch(39.92% 0.109 136.8)
XYZxyz(4.1315, 6.8260, 1.5517)
Luminance0.0683 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28540F #3B0F54
analogous
#4B540F #28540F #0F5419
triadic
#28540F #0F2854 #540F28
tetradic
#28540F #0F4B54 #3B0F54 #54190F
square
#28540F #0F4B54 #3B0F54 #54190F
split-complementary
#28540F #190F54 #540F4B
monochromatic
#0C1A05 #0F2006 #28540F #418818 #59BC22

Accessibility & contrast

On white

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

On black

2.37
#28540F on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##28540F#FFFFFF#000000##FFFFFF
##28540F1.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28540f;
/* rgb */ color: rgb(40, 84, 15);
/* oklch */ color: oklch(39.9% 0.109 136.8);
Tailwind
colors: {
  custom: {
    50: '#678453',
    500: '#28540f',
    950: '#000000',
  },
}
SCSS
$custom: #28540f;
$custom-light: #678453;
$custom-dark: #000000;
JSON
{
  "hex": "#28540f",
  "rgb": {
    "r": 40,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 98.261,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39919,
    "c": 0.1087,
    "h": 136.8
  },
  "luminance": 0.06826
}

Semantic roles & 50–950 ramp

primary
#28540F
secondary
#6C318E
accent
#3BEDAC
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #28540F

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

Preview Lab → · Contrast checker → · Palette generator →

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