#284D12#284D12

#284D12 is a dark, moderate yellow-green. Relative luminance 0.058; OKLCH L 37.9% C 0.097 H 136.1°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#284D12
RGBrgb(40, 77, 18)
HSLhsl(98, 62%, 19%)
HSVhsv(98, 77%, 30%)
CMYKcmyk(48.1%, 0%, 76.6%, 69.8%)
CIE-LABlab(28.91, -25.06, 29.48)
CIE-LCHlch(28.91, 38.69, 130.37°)
OKLaboklab(37.87% -0.0697 0.067)
OKLCHoklch(37.87% 0.097 136.1)
XYZxyz(3.6380, 5.8023, 1.5004)
Luminance0.0580 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284D12 #37124D
analogous
#454D12 #284D12 #124D19
triadic
#284D12 #12284D #4D1228
tetradic
#284D12 #12454D #37124D #4D1912
square
#284D12 #12454D #37124D #4D1912
split-complementary
#284D12 #19124D #4D1245
monochromatic
#0D1906 #0E1B06 #284D12 #427F1E #5CB029

Accessibility & contrast

On white

9.72
#284D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#284D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284D12
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284D12#FFFFFF#000000##FFFFFF
##284D121.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504609
Deuteranopia (green-blind)
#4B4317
Tritanopia (blue-blind)
#274A41
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #284d12;
/* rgb */ color: rgb(40, 77, 18);
/* oklch */ color: oklch(37.9% 0.097 136.1);
Tailwind
colors: {
  custom: {
    50: '#667f54',
    500: '#284d12',
    950: '#000000',
  },
}
SCSS
$custom: #284d12;
$custom-light: #667f54;
$custom-dark: #000000;
JSON
{
  "hex": "#284d12",
  "rgb": {
    "r": 40,
    "g": 77,
    "b": 18
  },
  "hsl": {
    "h": 97.627,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.37874,
    "c": 0.09663,
    "h": 136.1
  },
  "luminance": 0.05803
}

Semantic roles & 50–950 ramp

primary
#284D12
secondary
#683586
accent
#43E5A9
background
#F6F7F4
surface
#EBEEE8
border
#C6C9C4
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #284D12

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

Preview Lab → · Contrast checker → · Palette generator →

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