#284C0C#284C0C

#284C0C is a dark, moderate yellow-green. Relative luminance 0.056; OKLCH L 37.5% C 0.099 H 134.9°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#284C0C
RGBrgb(40, 76, 12)
HSLhsl(94, 73%, 17%)
HSVhsv(94, 84%, 30%)
CMYKcmyk(47.4%, 0%, 84.2%, 70.2%)
CIE-LABlab(28.50, -25.06, 31.59)
CIE-LCHlch(28.50, 40.32, 128.43°)
OKLaboklab(37.53% -0.0701 0.0704)
OKLCHoklch(37.53% 0.099 134.9)
XYZxyz(3.5258, 5.6463, 1.2518)
Luminance0.0565 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284C0C #300C4C
analogous
#484C0C #284C0C #0C4C10
triadic
#284C0C #0C284C #4C0C28
tetradic
#284C0C #0C484C #300C4C #4C100C
square
#284C0C #0C484C #300C4C #4C100C
split-complementary
#284C0C #100C4C #4C0C48
monochromatic
#0E1A04 #0E1A04 #284C0C #448114 #60B61D

Accessibility & contrast

On white

9.86
#284C0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#284C0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284C0C
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284C0C#FFFFFF#000000##FFFFFF
##284C0C1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4501
Deuteranopia (green-blind)
#4A4213
Tritanopia (blue-blind)
#274940
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #284c0c;
/* rgb */ color: rgb(40, 76, 12);
/* oklch */ color: oklch(37.5% 0.099 134.9);
Tailwind
colors: {
  custom: {
    50: '#667e50',
    500: '#284c0c',
    950: '#000000',
  },
}
SCSS
$custom: #284c0c;
$custom-light: #667e50;
$custom-dark: #000000;
JSON
{
  "hex": "#284c0c",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 12
  },
  "hsl": {
    "h": 93.75,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.37527,
    "c": 0.09937,
    "h": 134.9
  },
  "luminance": 0.05647
}

Semantic roles & 50–950 ramp

primary
#284C0C
secondary
#602C88
accent
#38EF9F
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #284C0C

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

Preview Lab → · Contrast checker → · Palette generator →

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