#284E0F#284E0F

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

Color values

HEX#284E0F
RGBrgb(40, 78, 15)
HSLhsl(96, 68%, 18%)
HSVhsv(96, 81%, 31%)
CMYKcmyk(48.7%, 0%, 80.8%, 69.4%)
CIE-LABlab(29.25, -25.79, 31.12)
CIE-LCHlch(29.25, 40.42, 129.65°)
OKLaboklab(38.14% -0.0719 0.0699)
OKLCHoklch(38.14% 0.1 135.8)
XYZxyz(3.6856, 5.9342, 1.4030)
Luminance0.0593 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284E0F #350F4E
analogous
#474E0F #284E0F #0F4E15
triadic
#284E0F #0F284E #4E0F28
tetradic
#284E0F #0F474E #350F4E #4E150F
square
#284E0F #0F474E #350F4E #4E150F
split-complementary
#284E0F #150F4E #4E0F47
monochromatic
#0D1A05 #0E1B05 #284E0F #428119 #5DB523

Accessibility & contrast

On white

9.60
#284E0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #284E0F
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284E0F#FFFFFF#000000##FFFFFF
##284E0F1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #284e0f;
/* rgb */ color: rgb(40, 78, 15);
/* oklch */ color: oklch(38.1% 0.100 135.8);
Tailwind
colors: {
  custom: {
    50: '#668052',
    500: '#284e0f',
    950: '#000000',
  },
}
SCSS
$custom: #284e0f;
$custom-light: #668052;
$custom-dark: #000000;
JSON
{
  "hex": "#284e0f",
  "rgb": {
    "r": 40,
    "g": 78,
    "b": 15
  },
  "hsl": {
    "h": 96.19,
    "s": 67.742,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38143,
    "c": 0.10026,
    "h": 135.8
  },
  "luminance": 0.05934
}

Semantic roles & 50–950 ramp

primary
#284E0F
secondary
#653188
accent
#3DEBA6
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #284E0F

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

Preview Lab → · Contrast checker → · Palette generator →

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