#284F12#284F12

#284F12 is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.5% C 0.100 H 136.5°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#284F12
RGBrgb(40, 79, 18)
HSLhsl(98, 63%, 19%)
HSVhsv(98, 77%, 31%)
CMYKcmyk(49.4%, 0%, 77.2%, 69%)
CIE-LABlab(29.63, -26.01, 30.22)
CIE-LCHlch(29.63, 39.87, 130.71°)
OKLaboklab(38.47% -0.0722 0.0685)
OKLCHoklch(38.47% 0.1 136.5)
XYZxyz(3.7801, 6.0865, 1.5478)
Luminance0.0609 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F12 #39124F
analogous
#474F12 #284F12 #124F1B
triadic
#284F12 #12284F #4F1228
tetradic
#284F12 #12474F #39124F #4F1B12
square
#284F12 #12474F #39124F #4F1B12
split-complementary
#284F12 #1B124F #4F1247
monochromatic
#0D1906 #0F1D07 #284F12 #41811D #5AB329

Accessibility & contrast

On white

9.47
#284F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#284F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284F12
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F12#FFFFFF#000000##FFFFFF
##284F121.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524808
Deuteranopia (green-blind)
#4D4518
Tritanopia (blue-blind)
#264C43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #284f12;
/* rgb */ color: rgb(40, 79, 18);
/* oklch */ color: oklch(38.5% 0.100 136.5);
Tailwind
colors: {
  custom: {
    50: '#668154',
    500: '#284f12',
    950: '#000000',
  },
}
SCSS
$custom: #284f12;
$custom-light: #668154;
$custom-dark: #000000;
JSON
{
  "hex": "#284f12",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 18
  },
  "hsl": {
    "h": 98.361,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.38466,
    "c": 0.09956,
    "h": 136.5
  },
  "luminance": 0.06087
}

Semantic roles & 50–950 ramp

primary
#284F12
secondary
#6A3588
accent
#42E6AB
background
#F6F7F5
surface
#EBEEE8
border
#C6C9C4
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #284F12

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

Preview Lab → · Contrast checker → · Palette generator →

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