#283A12#283A12

#283A12 is a dark, moderate yellow-green. Relative luminance 0.035; OKLCH L 32.3% C 0.067 H 129.8°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#283A12
RGBrgb(40, 58, 18)
HSLhsl(87, 53%, 15%)
HSVhsv(87, 69%, 23%)
CMYKcmyk(31%, 0%, 69%, 77.3%)
CIE-LABlab(22.02, -15.23, 22.05)
CIE-LCHlch(22.02, 26.80, 124.64°)
OKLaboklab(32.26% -0.0428 0.0513)
OKLCHoklch(32.26% 0.067 129.8)
XYZxyz(2.4973, 3.5208, 1.1202)
Luminance0.0352 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283A12 #24123A
analogous
#3A3812 #283A12 #143A12
triadic
#283A12 #12283A #3A1228
tetradic
#283A12 #123A38 #24123A #3A1214
square
#283A12 #123A38 #24123A #3A1214
split-complementary
#283A12 #12143A #38123A
monochromatic
#101707 #101707 #283A12 #486920 #68972F

Accessibility & contrast

On white

12.32
#283A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#283A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283A12
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283A12#FFFFFF#000000##FFFFFF
##283A121.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D360E
Deuteranopia (green-blind)
#3A3415
Tritanopia (blue-blind)
#293731
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #283a12;
/* rgb */ color: rgb(40, 58, 18);
/* oklch */ color: oklch(32.3% 0.067 129.8);
Tailwind
colors: {
  custom: {
    50: '#637051',
    500: '#283a12',
    950: '#000000',
  },
}
SCSS
$custom: #283a12;
$custom-light: #637051;
$custom-dark: #000000;
JSON
{
  "hex": "#283a12",
  "rgb": {
    "r": 40,
    "g": 58,
    "b": 18
  },
  "hsl": {
    "h": 87,
    "s": 52.632,
    "l": 14.902
  },
  "oklch": {
    "l": 0.32255,
    "c": 0.0668,
    "h": 129.8
  },
  "luminance": 0.03521
}

Semantic roles & 50–950 ramp

primary
#283A12
secondary
#513573
accent
#4CDC8D
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#050702
muted
#7A7A78

Preview Lab

Preview with #283A12

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

Preview Lab → · Contrast checker → · Palette generator →

#283A12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva