#284E0C#284E0C

#284E0C is a dark, moderate yellow-green. Relative luminance 0.059; OKLCH L 38.1% C 0.102 H 135.3°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#284E0C
RGBrgb(40, 78, 12)
HSLhsl(95, 73%, 18%)
HSVhsv(95, 85%, 31%)
CMYKcmyk(48.7%, 0%, 84.6%, 69.4%)
CIE-LABlab(29.23, -26.01, 32.28)
CIE-LCHlch(29.23, 41.45, 128.86°)
OKLaboklab(38.12% -0.0727 0.0718)
OKLCHoklch(38.12% 0.102 135.3)
XYZxyz(3.6657, 5.9262, 1.2985)
Luminance0.0593 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284E0C #320C4E
analogous
#494E0C #284E0C #0C4E11
triadic
#284E0C #0C284E #4E0C28
tetradic
#284E0C #0C494E #320C4E #4E110C
square
#284E0C #0C494E #320C4E #4E110C
split-complementary
#284E0C #110C4E #4E0C49
monochromatic
#0E1B04 #0E1B04 #284E0C #438314 #5EB81C

Accessibility & contrast

On white

9.61
#284E0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#284E0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284E0C
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284E0C#FFFFFF#000000##FFFFFF
##284E0C1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514700
Deuteranopia (green-blind)
#4C4413
Tritanopia (blue-blind)
#274B42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #284e0c;
/* rgb */ color: rgb(40, 78, 12);
/* oklch */ color: oklch(38.1% 0.102 135.3);
Tailwind
colors: {
  custom: {
    50: '#668051',
    500: '#284e0c',
    950: '#000000',
  },
}
SCSS
$custom: #284e0c;
$custom-light: #668051;
$custom-dark: #000000;
JSON
{
  "hex": "#284e0c",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 12
  },
  "hsl": {
    "h": 94.545,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.3812,
    "c": 0.10219,
    "h": 135.3
  },
  "luminance": 0.05926
}

Semantic roles & 50–950 ramp

primary
#284E0C
secondary
#622C8A
accent
#38F0A2
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #284E0C

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

Preview Lab → · Contrast checker → · Palette generator →

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