#28331C#28331C

#28331C is a dark, muted yellow-green. Relative luminance 0.029; OKLCH L 30.4% C 0.042 H 129.4°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#28331C
RGBrgb(40, 51, 28)
HSLhsl(89, 29%, 15%)
HSVhsv(89, 45%, 20%)
CMYKcmyk(21.6%, 0%, 45.1%, 80%)
CIE-LABlab(19.65, -9.70, 13.11)
CIE-LCHlch(19.65, 16.31, 126.51°)
OKLaboklab(30.39% -0.0266 0.0323)
OKLCHoklch(30.39% 0.042 129.4)
XYZxyz(2.2685, 2.9026, 1.5391)
Luminance0.0290 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28331C #271C33
analogous
#33321C #28331C #1C331C
triadic
#28331C #1C2833 #331C28
tetradic
#28331C #1C3332 #271C33 #331C1C
square
#28331C #1C3332 #271C33 #331C1C
split-complementary
#28331C #1C1C33 #321C33
monochromatic
#0F140B #0F140B #28331C #475B32 #668247

Accessibility & contrast

On white

13.29
#28331C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#28331C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28331C
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28331C#FFFFFF#000000##FFFFFF
##28331C1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35301A
Deuteranopia (green-blind)
#332F1D
Tritanopia (blue-blind)
#29312D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28331c;
/* rgb */ color: rgb(40, 51, 28);
/* oklch */ color: oklch(30.4% 0.042 129.4);
Tailwind
colors: {
  custom: {
    50: '#626a58',
    500: '#28331c',
    950: '#000000',
  },
}
SCSS
$custom: #28331c;
$custom-light: #626a58;
$custom-dark: #000000;
JSON
{
  "hex": "#28331c",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 28
  },
  "hsl": {
    "h": 88.696,
    "s": 29.114,
    "l": 15.49
  },
  "oklch": {
    "l": 0.30392,
    "c": 0.04183,
    "h": 129.4
  },
  "luminance": 0.02903
}

Semantic roles & 50–950 ramp

primary
#28331C
secondary
#554467
accent
#62C592
background
#F5F6F5
surface
#EAEBE9
border
#C6C6C5
text
#050603
muted
#797A78

Preview Lab

Preview with #28331C

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

Preview Lab → · Contrast checker → · Palette generator →

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