#284512#284512

#284512 is a dark, moderate yellow-green. Relative luminance 0.048; OKLCH L 35.5% C 0.085 H 134.2°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#284512
RGBrgb(40, 69, 18)
HSLhsl(94, 59%, 17%)
HSVhsv(94, 74%, 27%)
CMYKcmyk(42%, 0%, 73.9%, 72.9%)
CIE-LABlab(26.01, -21.13, 26.43)
CIE-LCHlch(26.01, 33.84, 128.64°)
OKLaboklab(35.5% -0.059 0.0606)
OKLCHoklch(35.5% 0.085 134.2)
XYZxyz(3.1123, 4.7509, 1.3252)
Luminance0.0475 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284512 #2F1245
analogous
#424512 #284512 #124516
triadic
#284512 #122845 #451228
tetradic
#284512 #124245 #2F1245 #451612
square
#284512 #124245 #2F1245 #451612
split-complementary
#284512 #161245 #451242
monochromatic
#0E1806 #0E1806 #284512 #44761F #60A62B

Accessibility & contrast

On white

10.77
#284512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#284512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284512
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284512#FFFFFF#000000##FFFFFF
##2845121.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#483F0B
Deuteranopia (green-blind)
#443D16
Tritanopia (blue-blind)
#28423B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #284512;
/* rgb */ color: rgb(40, 69, 18);
/* oklch */ color: oklch(35.5% 0.085 134.2);
Tailwind
colors: {
  custom: {
    50: '#657953',
    500: '#284512',
    950: '#000000',
  },
}
SCSS
$custom: #284512;
$custom-light: #657953;
$custom-dark: #000000;
JSON
{
  "hex": "#284512",
  "rgb": {
    "r": 40,
    "g": 69,
    "b": 18
  },
  "hsl": {
    "h": 94.118,
    "s": 58.621,
    "l": 17.059
  },
  "oklch": {
    "l": 0.35505,
    "c": 0.08453,
    "h": 134.2
  },
  "luminance": 0.04751
}

Semantic roles & 50–950 ramp

primary
#284512
secondary
#5E357E
accent
#46E29F
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #284512

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

Preview Lab → · Contrast checker → · Palette generator →

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