#284012#284012

#284012 is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.0% C 0.077 H 132.6°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#284012
RGBrgb(40, 64, 18)
HSLhsl(91, 56%, 16%)
HSVhsv(91, 72%, 25%)
CMYKcmyk(37.5%, 0%, 71.9%, 74.9%)
CIE-LABlab(24.20, -18.52, 24.47)
CIE-LCHlch(24.20, 30.69, 127.13°)
OKLaboklab(34.03% -0.0518 0.0564)
OKLCHoklch(34.03% 0.077 132.6)
XYZxyz(2.8176, 4.1615, 1.2269)
Luminance0.0416 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284012 #2A1240
analogous
#3F4012 #284012 #124013
triadic
#284012 #122840 #401228
tetradic
#284012 #123F40 #2A1240 #401312
square
#284012 #123F40 #2A1240 #401312
split-complementary
#284012 #131240 #40123F
monochromatic
#0F1807 #0F1807 #284012 #46701F #64A02D

Accessibility & contrast

On white

11.46
#284012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#284012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284012
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284012#FFFFFF#000000##FFFFFF
##2840121.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433B0C
Deuteranopia (green-blind)
#403916
Tritanopia (blue-blind)
#283D36
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #284012;
/* rgb */ color: rgb(40, 64, 18);
/* oklch */ color: oklch(34.0% 0.077 132.6);
Tailwind
colors: {
  custom: {
    50: '#647552',
    500: '#284012',
    950: '#000000',
  },
}
SCSS
$custom: #284012;
$custom-light: #647552;
$custom-dark: #000000;
JSON
{
  "hex": "#284012",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 18
  },
  "hsl": {
    "h": 91.304,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.34025,
    "c": 0.07663,
    "h": 132.6
  },
  "luminance": 0.04162
}

Semantic roles & 50–950 ramp

primary
#284012
secondary
#583579
accent
#48DF97
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#050802
muted
#7A7B78

Preview Lab

Preview with #284012

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

Preview Lab → · Contrast checker → · Palette generator →

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