#28310A#28310A

#28310A is a dark, moderate yellow-green. Relative luminance 0.027; OKLCH L 29.5% C 0.060 H 121.4°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#28310A
RGBrgb(40, 49, 10)
HSLhsl(74, 66%, 12%)
HSVhsv(74, 80%, 19%)
CMYKcmyk(18.4%, 0%, 79.6%, 80.8%)
CIE-LABlab(18.67, -10.75, 22.24)
CIE-LCHlch(18.67, 24.70, 115.80°)
OKLaboklab(29.52% -0.0313 0.0513)
OKLCHoklch(29.52% 0.06 121.4)
XYZxyz(2.0282, 2.6697, 0.6955)
Luminance0.0267 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28310A #130A31
analogous
#31270A #28310A #15310A
triadic
#28310A #0A2831 #310A28
tetradic
#28310A #0A3127 #130A31 #310A15
square
#28310A #0A3127 #130A31 #310A15
split-complementary
#28310A #0A1531 #270A31
monochromatic
#151905 #151905 #28310A #516414 #7B971F

Accessibility & contrast

On white

13.69
#28310A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28310A
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28310A#FFFFFF#000000##FFFFFF
##28310A1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342E05
Deuteranopia (green-blind)
#332D0D
Tritanopia (blue-blind)
#2B2E29
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #28310a;
/* rgb */ color: rgb(40, 49, 10);
/* oklch */ color: oklch(29.5% 0.060 121.4);
Tailwind
colors: {
  custom: {
    50: '#63694c',
    500: '#28310a',
    950: '#000000',
  },
}
SCSS
$custom: #28310a;
$custom-light: #63694c;
$custom-dark: #000000;
JSON
{
  "hex": "#28310a",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 10
  },
  "hsl": {
    "h": 73.846,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.29519,
    "c": 0.06013,
    "h": 121.4
  },
  "luminance": 0.0267
}

Semantic roles & 50–950 ramp

primary
#28310A
secondary
#39296E
accent
#3FE966
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#050601
muted
#7A7A77

Preview Lab

Preview with #28310A

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

Preview Lab → · Contrast checker → · Palette generator →

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