#284C0F#284C0F

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

Color values

HEX#284C0F
RGBrgb(40, 76, 15)
HSLhsl(95, 67%, 18%)
HSVhsv(95, 80%, 30%)
CMYKcmyk(47.4%, 0%, 80.3%, 70.2%)
CIE-LABlab(28.52, -24.84, 30.40)
CIE-LCHlch(28.52, 39.26, 129.25°)
OKLaboklab(37.55% -0.0693 0.0684)
OKLCHoklch(37.55% 0.097 135.4)
XYZxyz(3.5457, 5.6543, 1.3564)
Luminance0.0565 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284C0F #330F4C
analogous
#464C0F #284C0F #0F4C14
triadic
#284C0F #0F284C #4C0F28
tetradic
#284C0F #0F464C #330F4C #4C140F
square
#284C0F #0F464C #330F4C #4C140F
split-complementary
#284C0F #140F4C #4C0F46
monochromatic
#0D1A05 #0D1A05 #284C0F #437F19 #5EB223

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##284C0F#FFFFFF#000000##FFFFFF
##284C0F1.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)
#4F4505
Deuteranopia (green-blind)
#4A4215
Tritanopia (blue-blind)
#274940
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #284c0f;
/* rgb */ color: rgb(40, 76, 15);
/* oklch */ color: oklch(37.6% 0.097 135.4);
Tailwind
colors: {
  custom: {
    50: '#667e52',
    500: '#284c0f',
    950: '#000000',
  },
}
SCSS
$custom: #284c0f;
$custom-light: #667e52;
$custom-dark: #000000;
JSON
{
  "hex": "#284c0f",
  "rgb": {
    "r": 40,
    "g": 76,
    "b": 15
  },
  "hsl": {
    "h": 95.41,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37551,
    "c": 0.09738,
    "h": 135.4
  },
  "luminance": 0.05654
}

Semantic roles & 50–950 ramp

primary
#284C0F
secondary
#633186
accent
#3EEAA3
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #284C0F

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

Preview Lab → · Contrast checker → · Palette generator →

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