#28310C#28310C

#28310C is a dark, muted yellow-green. Relative luminance 0.027; OKLCH L 29.5% C 0.058 H 121.7°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#28310C
RGBrgb(40, 49, 12)
HSLhsl(75, 61%, 12%)
HSVhsv(75, 76%, 19%)
CMYKcmyk(18.4%, 0%, 75.5%, 80.8%)
CIE-LABlab(18.69, -10.57, 21.40)
CIE-LCHlch(18.69, 23.87, 116.29°)
OKLaboklab(29.54% -0.0306 0.0495)
OKLCHoklch(29.54% 0.058 121.7)
XYZxyz(2.0398, 2.6743, 0.7565)
Luminance0.0267 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28310C #150C31
analogous
#31280C #28310C #16310C
triadic
#28310C #0C2831 #310C28
tetradic
#28310C #0C3128 #150C31 #310C16
square
#28310C #0C3128 #150C31 #310C16
split-complementary
#28310C #0C1631 #280C31
monochromatic
#141906 #141906 #28310C #506218 #789324

Accessibility & contrast

On white

13.68
#28310C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#28310C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28310C
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28310C#FFFFFF#000000##FFFFFF
##28310C1.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342E08
Deuteranopia (green-blind)
#332D0F
Tritanopia (blue-blind)
#2A2E29
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #28310c;
/* rgb */ color: rgb(40, 49, 12);
/* oklch */ color: oklch(29.5% 0.058 121.7);
Tailwind
colors: {
  custom: {
    50: '#63694d',
    500: '#28310c',
    950: '#000000',
  },
}
SCSS
$custom: #28310c;
$custom-light: #63694d;
$custom-dark: #000000;
JSON
{
  "hex": "#28310c",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 12
  },
  "hsl": {
    "h": 74.595,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.29542,
    "c": 0.05821,
    "h": 121.7
  },
  "luminance": 0.02674
}

Semantic roles & 50–950 ramp

primary
#28310C
secondary
#3C2C6D
accent
#44E46B
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#050601
muted
#7A7A77

Preview Lab

Preview with #28310C

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

Preview Lab → · Contrast checker → · Palette generator →

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