#284112#284112

#284112 is a dark, moderate yellow-green. Relative luminance 0.043; OKLCH L 34.3% C 0.078 H 132.9°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#284112
RGBrgb(40, 65, 18)
HSLhsl(92, 57%, 16%)
HSVhsv(92, 72%, 25%)
CMYKcmyk(38.5%, 0%, 72.3%, 74.5%)
CIE-LABlab(24.56, -19.05, 24.87)
CIE-LCHlch(24.56, 31.33, 127.46°)
OKLaboklab(34.32% -0.0533 0.0573)
OKLCHoklch(34.32% 0.078 132.9)
XYZxyz(2.8745, 4.2753, 1.2459)
Luminance0.0428 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284112 #2B1241
analogous
#404112 #284112 #124114
triadic
#284112 #122841 #411228
tetradic
#284112 #124041 #2B1241 #411412
square
#284112 #124041 #2B1241 #411412
split-complementary
#284112 #141241 #411240
monochromatic
#0F1807 #0F1807 #284112 #45711F #63A12D

Accessibility & contrast

On white

11.32
#284112 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#284112 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284112
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284112#FFFFFF#000000##FFFFFF
##2841121.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443C0C
Deuteranopia (green-blind)
#403A16
Tritanopia (blue-blind)
#283E37
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #284112;
/* rgb */ color: rgb(40, 65, 18);
/* oklch */ color: oklch(34.3% 0.078 132.9);
Tailwind
colors: {
  custom: {
    50: '#647652',
    500: '#284112',
    950: '#000000',
  },
}
SCSS
$custom: #284112;
$custom-light: #647652;
$custom-dark: #000000;
JSON
{
  "hex": "#284112",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 18
  },
  "hsl": {
    "h": 91.915,
    "s": 56.627,
    "l": 16.275
  },
  "oklch": {
    "l": 0.34321,
    "c": 0.07823,
    "h": 132.9
  },
  "luminance": 0.04275
}

Semantic roles & 50–950 ramp

primary
#284112
secondary
#5A357A
accent
#48E099
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#050802
muted
#7A7B78

Preview Lab

Preview with #284112

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

Preview Lab → · Contrast checker → · Palette generator →

#284112 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva