#28310E#28310E

#28310E is a dark, muted yellow-green. Relative luminance 0.027; OKLCH L 29.6% C 0.056 H 122.1°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#28310E
RGBrgb(40, 49, 14)
HSLhsl(75, 56%, 12%)
HSVhsv(75, 71%, 19%)
CMYKcmyk(18.4%, 0%, 71.4%, 80.8%)
CIE-LABlab(18.71, -10.38, 20.47)
CIE-LCHlch(18.71, 22.95, 116.88°)
OKLaboklab(29.57% -0.0298 0.0476)
OKLCHoklch(29.57% 0.056 122.1)
XYZxyz(2.0527, 2.6794, 0.8244)
Luminance0.0268 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28310E #170E31
analogous
#31290E #28310E #16310E
triadic
#28310E #0E2831 #310E28
tetradic
#28310E #0E3129 #170E31 #310E16
square
#28310E #0E3129 #170E31 #310E16
split-complementary
#28310E #0E1631 #290E31
monochromatic
#131807 #131807 #28310E #4F611C #769029

Accessibility & contrast

On white

13.67
#28310E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#28310E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28310E
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28310E#FFFFFF#000000##FFFFFF
##28310E1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342E0A
Deuteranopia (green-blind)
#332E10
Tritanopia (blue-blind)
#2A2E2A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #28310e;
/* rgb */ color: rgb(40, 49, 14);
/* oklch */ color: oklch(29.6% 0.056 122.1);
Tailwind
colors: {
  custom: {
    50: '#63694e',
    500: '#28310e',
    950: '#000000',
  },
}
SCSS
$custom: #28310e;
$custom-light: #63694e;
$custom-dark: #000000;
JSON
{
  "hex": "#28310e",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 14
  },
  "hsl": {
    "h": 75.429,
    "s": 55.556,
    "l": 12.353
  },
  "oklch": {
    "l": 0.29567,
    "c": 0.05614,
    "h": 122.1
  },
  "luminance": 0.02679
}

Semantic roles & 50–950 ramp

primary
#28310E
secondary
#3F2F6C
accent
#49DF6F
background
#F5F6F4
surface
#EAEBE7
border
#C6C6C3
text
#050601
muted
#797A77

Preview Lab

Preview with #28310E

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

Preview Lab → · Contrast checker → · Palette generator →

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