#284C0E#284C0E

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

Color values

HEX#284C0E
RGBrgb(40, 76, 14)
HSLhsl(95, 69%, 18%)
HSVhsv(95, 82%, 30%)
CMYKcmyk(47.4%, 0%, 81.6%, 70.2%)
CIE-LABlab(28.52, -24.92, 30.81)
CIE-LCHlch(28.52, 39.63, 128.97°)
OKLaboklab(37.54% -0.0696 0.0691)
OKLCHoklch(37.54% 0.098 135.2)
XYZxyz(3.5387, 5.6515, 1.3198)
Luminance0.0565 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284C0E #320E4C
analogous
#474C0E #284C0E #0E4C13
triadic
#284C0E #0E284C #4C0E28
tetradic
#284C0E #0E474C #320E4C #4C130E
square
#284C0E #0E474C #320E4C #4C130E
split-complementary
#284C0E #130E4C #4C0E47
monochromatic
#0E1A05 #0E1A05 #284C0E #438018 #5EB321

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##284C0E#FFFFFF#000000##FFFFFF
##284C0E1.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)
#4F4503
Deuteranopia (green-blind)
#4A4214
Tritanopia (blue-blind)
#274940
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #284c0e;
/* rgb */ color: rgb(40, 76, 14);
/* oklch */ color: oklch(37.5% 0.098 135.2);
Tailwind
colors: {
  custom: {
    50: '#667e51',
    500: '#284c0e',
    950: '#000000',
  },
}
SCSS
$custom: #284c0e;
$custom-light: #667e51;
$custom-dark: #000000;
JSON
{
  "hex": "#284c0e",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 14
  },
  "hsl": {
    "h": 94.839,
    "s": 68.889,
    "l": 17.647
  },
  "oklch": {
    "l": 0.37542,
    "c": 0.09808,
    "h": 135.2
  },
  "luminance": 0.05652
}

Semantic roles & 50–950 ramp

primary
#284C0E
secondary
#622F87
accent
#3CECA2
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #284C0E

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

Preview Lab → · Contrast checker → · Palette generator →

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