#284A0F#284A0F

#284A0F is a dark, moderate yellow-green. Relative luminance 0.054; OKLCH L 37.0% C 0.094 H 134.9°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#284A0F
RGBrgb(40, 74, 15)
HSLhsl(95, 66%, 17%)
HSVhsv(95, 80%, 29%)
CMYKcmyk(45.9%, 0%, 79.7%, 71%)
CIE-LABlab(27.80, -23.88, 29.67)
CIE-LCHlch(27.80, 38.09, 128.83°)
OKLaboklab(36.96% -0.0667 0.0669)
OKLCHoklch(36.96% 0.094 134.9)
XYZxyz(3.4100, 5.3830, 1.3112)
Luminance0.0538 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284A0F #310F4A
analogous
#464A0F #284A0F #0F4A13
triadic
#284A0F #0F284A #4A0F28
tetradic
#284A0F #0F464A #310F4A #4A130F
square
#284A0F #0F464A #310F4A #4A130F
split-complementary
#284A0F #130F4A #4A0F46
monochromatic
#0E1905 #0E1905 #284A0F #447D19 #5FB024

Accessibility & contrast

On white

10.11
#284A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#284A0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284A0F
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284A0F#FFFFFF#000000##FFFFFF
##284A0F1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4305
Deuteranopia (green-blind)
#484115
Tritanopia (blue-blind)
#27473E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #284a0f;
/* rgb */ color: rgb(40, 74, 15);
/* oklch */ color: oklch(37.0% 0.094 134.9);
Tailwind
colors: {
  custom: {
    50: '#667d52',
    500: '#284a0f',
    950: '#000000',
  },
}
SCSS
$custom: #284a0f;
$custom-light: #667d52;
$custom-dark: #000000;
JSON
{
  "hex": "#284a0f",
  "rgb": {
    "r": 40,
    "g": 74,
    "b": 15
  },
  "hsl": {
    "h": 94.576,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.36958,
    "c": 0.09447,
    "h": 134.9
  },
  "luminance": 0.05383
}

Semantic roles & 50–950 ramp

primary
#284A0F
secondary
#613084
accent
#3FE9A1
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #284A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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