#284C12#284C12

#284C12 is a dark, moderate yellow-green. Relative luminance 0.057; OKLCH L 37.6% C 0.095 H 135.9°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#284C12
RGBrgb(40, 76, 18)
HSLhsl(97, 62%, 18%)
HSVhsv(97, 76%, 30%)
CMYKcmyk(47.4%, 0%, 76.3%, 70.2%)
CIE-LABlab(28.55, -24.59, 29.10)
CIE-LCHlch(28.55, 38.10, 130.19°)
OKLaboklab(37.58% -0.0684 0.0662)
OKLCHoklch(37.58% 0.095 135.9)
XYZxyz(3.5686, 5.6635, 1.4773)
Luminance0.0566 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284C12 #36124C
analogous
#454C12 #284C12 #124C19
triadic
#284C12 #12284C #4C1228
tetradic
#284C12 #12454C #36124C #4C1912
square
#284C12 #12454C #36124C #4C1912
split-complementary
#284C12 #19124C #4C1245
monochromatic
#0D1906 #0E1B06 #284C12 #427D1E #5CAF29

Accessibility & contrast

On white

9.85
#284C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #284C12
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284C12#FFFFFF#000000##FFFFFF
##284C121.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #284c12;
/* rgb */ color: rgb(40, 76, 18);
/* oklch */ color: oklch(37.6% 0.095 135.9);
Tailwind
colors: {
  custom: {
    50: '#667e54',
    500: '#284c12',
    950: '#000000',
  },
}
SCSS
$custom: #284c12;
$custom-light: #667e54;
$custom-dark: #000000;
JSON
{
  "hex": "#284c12",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 18
  },
  "hsl": {
    "h": 97.241,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.37578,
    "c": 0.09515,
    "h": 135.9
  },
  "luminance": 0.05664
}

Semantic roles & 50–950 ramp

primary
#284C12
secondary
#673585
accent
#43E5A7
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #284C12

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

Preview Lab → · Contrast checker → · Palette generator →

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