#284A12#284A12

#284A12 is a dark, moderate yellow-green. Relative luminance 0.054; OKLCH L 37.0% C 0.092 H 135.5°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#284A12
RGBrgb(40, 74, 18)
HSLhsl(96, 61%, 18%)
HSVhsv(96, 76%, 29%)
CMYKcmyk(45.9%, 0%, 75.7%, 71%)
CIE-LABlab(27.82, -23.62, 28.35)
CIE-LCHlch(27.82, 36.90, 129.80°)
OKLaboklab(36.99% -0.0657 0.0646)
OKLCHoklch(36.99% 0.092 135.5)
XYZxyz(3.4330, 5.3922, 1.4321)
Luminance0.0539 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284A12 #34124A
analogous
#444A12 #284A12 #124A18
triadic
#284A12 #12284A #4A1228
tetradic
#284A12 #12444A #34124A #4A1812
square
#284A12 #12444A #34124A #4A1812
split-complementary
#284A12 #18124A #4A1244
monochromatic
#0D1906 #0D1906 #284A12 #437B1E #5DAC2A

Accessibility & contrast

On white

10.10
#284A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#284A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284A12
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284A12#FFFFFF#000000##FFFFFF
##284A121.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D430A
Deuteranopia (green-blind)
#484117
Tritanopia (blue-blind)
#27473F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #284a12;
/* rgb */ color: rgb(40, 74, 18);
/* oklch */ color: oklch(37.0% 0.092 135.5);
Tailwind
colors: {
  custom: {
    50: '#657d53',
    500: '#284a12',
    950: '#000000',
  },
}
SCSS
$custom: #284a12;
$custom-light: #657d53;
$custom-dark: #000000;
JSON
{
  "hex": "#284a12",
  "rgb": {
    "r": 40,
    "g": 74,
    "b": 18
  },
  "hsl": {
    "h": 96.429,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.36986,
    "c": 0.09217,
    "h": 135.5
  },
  "luminance": 0.05392
}

Semantic roles & 50–950 ramp

primary
#284A12
secondary
#643583
accent
#44E4A5
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060903
muted
#7A7B78

Preview Lab

Preview with #284A12

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

Preview Lab → · Contrast checker → · Palette generator →

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