#284D0C#284D0C

#284D0C is a dark, moderate yellow-green. Relative luminance 0.058; OKLCH L 37.8% C 0.101 H 135.1°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#284D0C
RGBrgb(40, 77, 12)
HSLhsl(94, 73%, 17%)
HSVhsv(94, 84%, 30%)
CMYKcmyk(48.1%, 0%, 84.4%, 69.8%)
CIE-LABlab(28.86, -25.54, 31.94)
CIE-LCHlch(28.86, 40.89, 128.65°)
OKLaboklab(37.82% -0.0714 0.0711)
OKLCHoklch(37.82% 0.101 135.1)
XYZxyz(3.5952, 5.7852, 1.2750)
Luminance0.0578 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284D0C #310C4D
analogous
#494D0C #284D0C #0C4D11
triadic
#284D0C #0C284D #4D0C28
tetradic
#284D0C #0C494D #310C4D #4D110C
square
#284D0C #0C494D #310C4D #4D110C
split-complementary
#284D0C #110C4D #4D0C49
monochromatic
#0E1A04 #0E1A04 #284D0C #448214 #5FB71D

Accessibility & contrast

On white

9.74
#284D0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #284D0C
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284D0C#FFFFFF#000000##FFFFFF
##284D0C1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #284d0c;
/* rgb */ color: rgb(40, 77, 12);
/* oklch */ color: oklch(37.8% 0.101 135.1);
Tailwind
colors: {
  custom: {
    50: '#667f51',
    500: '#284d0c',
    950: '#000000',
  },
}
SCSS
$custom: #284d0c;
$custom-light: #667f51;
$custom-dark: #000000;
JSON
{
  "hex": "#284d0c",
  "rgb": {
    "r": 40,
    "g": 77,
    "b": 12
  },
  "hsl": {
    "h": 94.154,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.37824,
    "c": 0.10078,
    "h": 135.1
  },
  "luminance": 0.05785
}

Semantic roles & 50–950 ramp

primary
#284D0C
secondary
#612C89
accent
#38F0A1
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #284D0C

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

Preview Lab → · Contrast checker → · Palette generator →

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