#284F0C#284F0C

#284F0C is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.4% C 0.104 H 135.5°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#284F0C
RGBrgb(40, 79, 12)
HSLhsl(95, 74%, 18%)
HSVhsv(95, 85%, 31%)
CMYKcmyk(49.4%, 0%, 84.8%, 69%)
CIE-LABlab(29.59, -26.47, 32.63)
CIE-LCHlch(29.59, 42.01, 129.05°)
OKLaboklab(38.42% -0.0739 0.0726)
OKLCHoklch(38.42% 0.104 135.5)
XYZxyz(3.7373, 6.0694, 1.3223)
Luminance0.0607 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F0C #330C4F
analogous
#494F0C #284F0C #0C4F11
triadic
#284F0C #0C284F #4F0C28
tetradic
#284F0C #0C494F #330C4F #4F110C
square
#284F0C #0C494F #330C4F #4F110C
split-complementary
#284F0C #110C4F #4F0C49
monochromatic
#0D1B04 #0D1B04 #284F0C #438414 #5EB91C

Accessibility & contrast

On white

9.49
#284F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#284F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284F0C
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F0C#FFFFFF#000000##FFFFFF
##284F0C1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524800
Deuteranopia (green-blind)
#4D4513
Tritanopia (blue-blind)
#274C42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #284f0c;
/* rgb */ color: rgb(40, 79, 12);
/* oklch */ color: oklch(38.4% 0.104 135.5);
Tailwind
colors: {
  custom: {
    50: '#668151',
    500: '#284f0c',
    950: '#000000',
  },
}
SCSS
$custom: #284f0c;
$custom-light: #668151;
$custom-dark: #000000;
JSON
{
  "hex": "#284f0c",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 12
  },
  "hsl": {
    "h": 94.925,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.38417,
    "c": 0.10359,
    "h": 135.5
  },
  "luminance": 0.0607
}

Semantic roles & 50–950 ramp

primary
#284F0C
secondary
#632C8B
accent
#38F0A3
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #284F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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