#283812#283812

#283812 is a dark, moderate yellow-green. Relative luminance 0.033; OKLCH L 31.7% C 0.063 H 128.7°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#283812
RGBrgb(40, 56, 18)
HSLhsl(85, 51%, 15%)
HSVhsv(85, 68%, 22%)
CMYKcmyk(28.6%, 0%, 67.9%, 78%)
CIE-LABlab(21.29, -14.09, 21.23)
CIE-LCHlch(21.29, 25.49, 123.58°)
OKLaboklab(31.67% -0.0397 0.0495)
OKLCHoklch(31.67% 0.063 128.7)
XYZxyz(2.3984, 3.3231, 1.0872)
Luminance0.0332 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283812 #221238
analogous
#383512 #283812 #153812
triadic
#283812 #122838 #381228
tetradic
#283812 #123835 #221238 #381215
square
#283812 #123835 #221238 #381215
split-complementary
#283812 #121538 #351238
monochromatic
#111707 #111707 #283812 #496621 #6A9530

Accessibility & contrast

On white

12.62
#283812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#283812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283812
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283812#FFFFFF#000000##FFFFFF
##2838121.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B340E
Deuteranopia (green-blind)
#393315
Tritanopia (blue-blind)
#293530
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #283812;
/* rgb */ color: rgb(40, 56, 18);
/* oklch */ color: oklch(31.7% 0.063 128.7);
Tailwind
colors: {
  custom: {
    50: '#636e51',
    500: '#283812',
    950: '#000000',
  },
}
SCSS
$custom: #283812;
$custom-light: #636e51;
$custom-dark: #000000;
JSON
{
  "hex": "#283812",
  "rgb": {
    "r": 40,
    "g": 56,
    "b": 18
  },
  "hsl": {
    "h": 85.263,
    "s": 51.351,
    "l": 14.51
  },
  "oklch": {
    "l": 0.31667,
    "c": 0.06346,
    "h": 128.7
  },
  "luminance": 0.03323
}

Semantic roles & 50–950 ramp

primary
#283812
secondary
#4E3571
accent
#4DDB89
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#050702
muted
#7A7A78

Preview Lab

Preview with #283812

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

Preview Lab → · Contrast checker → · Palette generator →

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