#283908#283908

#283908 is a dark, moderate yellow-green. Relative luminance 0.034; OKLCH L 31.9% C 0.074 H 127.2°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#283908
RGBrgb(40, 57, 8)
HSLhsl(81, 75%, 13%)
HSVhsv(81, 86%, 22%)
CMYKcmyk(29.8%, 0%, 86%, 77.6%)
CIE-LABlab(21.56, -15.58, 26.31)
CIE-LCHlch(21.56, 30.58, 120.63°)
OKLaboklab(31.85% -0.0448 0.0591)
OKLCHoklch(31.85% 0.074 127.2)
XYZxyz(2.3820, 3.3949, 0.7595)
Luminance0.0340 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283908 #190839
analogous
#393108 #283908 #103908
triadic
#283908 #082839 #390828
tetradic
#283908 #083931 #190839 #390810
square
#283908 #083931 #190839 #390810
split-complementary
#283908 #081039 #310839
monochromatic
#131B04 #131B04 #283908 #4E6F10 #73A417

Accessibility & contrast

On white

12.51
#283908 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#283908 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283908
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283908#FFFFFF#000000##FFFFFF
##2839081.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C3402
Deuteranopia (green-blind)
#3A330D
Tritanopia (blue-blind)
#2A3630
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #283908;
/* rgb */ color: rgb(40, 57, 8);
/* oklch */ color: oklch(31.9% 0.074 127.2);
Tailwind
colors: {
  custom: {
    50: '#646f4c',
    500: '#283908',
    950: '#000000',
  },
}
SCSS
$custom: #283908;
$custom-light: #646f4c;
$custom-dark: #000000;
JSON
{
  "hex": "#283908",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 8
  },
  "hsl": {
    "h": 80.816,
    "s": 75.385,
    "l": 12.745
  },
  "oklch": {
    "l": 0.31852,
    "c": 0.07414,
    "h": 127.2
  },
  "luminance": 0.03395
}

Semantic roles & 50–950 ramp

primary
#283908
secondary
#422578
accent
#36F277
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#050701
muted
#7A7A77

Preview Lab

Preview with #283908

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

Preview Lab → · Contrast checker → · Palette generator →

#283908 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva