#28400D#28400D

#28400D is a dark, moderate yellow-green. Relative luminance 0.041; OKLCH L 34.0% C 0.081 H 131.5°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#28400D
RGBrgb(40, 64, 13)
HSLhsl(88, 66%, 15%)
HSVhsv(88, 80%, 25%)
CMYKcmyk(37.5%, 0%, 79.7%, 74.9%)
CIE-LABlab(24.15, -18.99, 26.87)
CIE-LCHlch(24.15, 32.90, 125.26°)
OKLaboklab(33.97% -0.0536 0.0607)
OKLCHoklch(33.97% 0.081 131.5)
XYZxyz(2.7811, 4.1469, 1.0346)
Luminance0.0415 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28400D #250D40
analogous
#403E0D #28400D #0F400D
triadic
#28400D #0D2840 #400D28
tetradic
#28400D #0D403E #250D40 #400D0F
square
#28400D #0D403E #250D40 #400D0F
split-complementary
#28400D #0D0F40 #3E0D40
monochromatic
#101905 #101905 #28400D #487317 #68A622

Accessibility & contrast

On white

11.48
#28400D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28400D
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28400D#FFFFFF#000000##FFFFFF
##28400D1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28400d;
/* rgb */ color: rgb(40, 64, 13);
/* oklch */ color: oklch(34.0% 0.081 131.5);
Tailwind
colors: {
  custom: {
    50: '#64754f',
    500: '#28400d',
    950: '#000000',
  },
}
SCSS
$custom: #28400d;
$custom-light: #64754f;
$custom-dark: #000000;
JSON
{
  "hex": "#28400d",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 13
  },
  "hsl": {
    "h": 88.235,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.33972,
    "c": 0.08097,
    "h": 131.5
  },
  "luminance": 0.04147
}

Semantic roles & 50–950 ramp

primary
#28400D
secondary
#522D7C
accent
#3FE98F
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #28400D

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

Preview Lab → · Contrast checker → · Palette generator →

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