#284212#284212

#284212 is a dark, moderate yellow-green. Relative luminance 0.044; OKLCH L 34.6% C 0.080 H 133.3°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#284212
RGBrgb(40, 66, 18)
HSLhsl(93, 57%, 16%)
HSVhsv(93, 73%, 26%)
CMYKcmyk(39.4%, 0%, 72.7%, 74.1%)
CIE-LABlab(24.92, -19.58, 25.26)
CIE-LCHlch(24.92, 31.96, 127.78°)
OKLaboklab(34.62% -0.0547 0.0581)
OKLCHoklch(34.62% 0.08 133.3)
XYZxyz(2.9324, 4.3911, 1.2652)
Luminance0.0439 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284212 #2C1242
analogous
#404212 #284212 #124214
triadic
#284212 #122842 #421228
tetradic
#284212 #124042 #2C1242 #421412
square
#284212 #124042 #2C1242 #421412
split-complementary
#284212 #141242 #421240
monochromatic
#0F1807 #0F1807 #284212 #45721F #62A22C

Accessibility & contrast

On white

11.18
#284212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#284212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284212
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284212#FFFFFF#000000##FFFFFF
##2842121.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C0C
Deuteranopia (green-blind)
#413A16
Tritanopia (blue-blind)
#283F38
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #284212;
/* rgb */ color: rgb(40, 66, 18);
/* oklch */ color: oklch(34.6% 0.080 133.3);
Tailwind
colors: {
  custom: {
    50: '#647652',
    500: '#284212',
    950: '#000000',
  },
}
SCSS
$custom: #284212;
$custom-light: #647652;
$custom-dark: #000000;
JSON
{
  "hex": "#284212",
  "rgb": {
    "r": 40,
    "g": 66,
    "b": 18
  },
  "hsl": {
    "h": 92.5,
    "s": 57.143,
    "l": 16.471
  },
  "oklch": {
    "l": 0.34617,
    "c": 0.07982,
    "h": 133.3
  },
  "luminance": 0.04391
}

Semantic roles & 50–950 ramp

primary
#284212
secondary
#5B357B
accent
#47E09A
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #284212

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

Preview Lab → · Contrast checker → · Palette generator →

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