#28400F#28400F

#28400F is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.0% C 0.079 H 131.9°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#28400F
RGBrgb(40, 64, 15)
HSLhsl(89, 62%, 15%)
HSVhsv(89, 77%, 25%)
CMYKcmyk(37.5%, 0%, 76.6%, 74.9%)
CIE-LABlab(24.17, -18.82, 25.94)
CIE-LCHlch(24.17, 32.05, 125.95°)
OKLaboklab(33.99% -0.0529 0.0591)
OKLCHoklch(33.99% 0.079 131.9)
XYZxyz(2.7947, 4.1523, 1.1061)
Luminance0.0415 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28400F #270F40
analogous
#403F0F #28400F #0F400F
triadic
#28400F #0F2840 #400F28
tetradic
#28400F #0F403F #270F40 #400F0F
square
#28400F #0F403F #270F40 #400F0F
split-complementary
#28400F #0F0F40 #3F0F40
monochromatic
#0F1906 #0F1906 #28400F #47721B #66A326

Accessibility & contrast

On white

11.47
#28400F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#28400F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28400F
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28400F#FFFFFF#000000##FFFFFF
##28400F1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433B08
Deuteranopia (green-blind)
#403913
Tritanopia (blue-blind)
#293D36
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #28400f;
/* rgb */ color: rgb(40, 64, 15);
/* oklch */ color: oklch(34.0% 0.079 131.9);
Tailwind
colors: {
  custom: {
    50: '#647550',
    500: '#28400f',
    950: '#000000',
  },
}
SCSS
$custom: #28400f;
$custom-light: #647550;
$custom-dark: #000000;
JSON
{
  "hex": "#28400f",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 15
  },
  "hsl": {
    "h": 89.388,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.33992,
    "c": 0.07933,
    "h": 131.9
  },
  "luminance": 0.04152
}

Semantic roles & 50–950 ramp

primary
#28400F
secondary
#55307A
accent
#43E592
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #28400F

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

Preview Lab → · Contrast checker → · Palette generator →

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