#284312#284312

#284312 is a dark, moderate yellow-green. Relative luminance 0.045; OKLCH L 34.9% C 0.081 H 133.6°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#284312
RGBrgb(40, 67, 18)
HSLhsl(93, 58%, 17%)
HSVhsv(93, 73%, 26%)
CMYKcmyk(40.3%, 0%, 73.1%, 73.7%)
CIE-LABlab(25.29, -20.10, 25.65)
CIE-LCHlch(25.29, 32.59, 128.08°)
OKLaboklab(34.91% -0.0562 0.0589)
OKLCHoklch(34.91% 0.081 133.6)
XYZxyz(2.9914, 4.5090, 1.2849)
Luminance0.0451 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284312 #2D1243
analogous
#414312 #284312 #124315
triadic
#284312 #122843 #431228
tetradic
#284312 #124143 #2D1243 #431512
square
#284312 #124143 #2D1243 #431512
split-complementary
#284312 #151243 #431241
monochromatic
#0E1806 #0E1806 #284312 #45731F #62A32C

Accessibility & contrast

On white

11.04
#284312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#284312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284312
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284312#FFFFFF#000000##FFFFFF
##2843121.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463D0C
Deuteranopia (green-blind)
#423B16
Tritanopia (blue-blind)
#284039
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #284312;
/* rgb */ color: rgb(40, 67, 18);
/* oklch */ color: oklch(34.9% 0.081 133.6);
Tailwind
colors: {
  custom: {
    50: '#647752',
    500: '#284312',
    950: '#000000',
  },
}
SCSS
$custom: #284312;
$custom-light: #647752;
$custom-dark: #000000;
JSON
{
  "hex": "#284312",
  "rgb": {
    "r": 40,
    "g": 67,
    "b": 18
  },
  "hsl": {
    "h": 93.061,
    "s": 57.647,
    "l": 16.667
  },
  "oklch": {
    "l": 0.34913,
    "c": 0.0814,
    "h": 133.6
  },
  "luminance": 0.04509
}

Semantic roles & 50–950 ramp

primary
#284312
secondary
#5C357C
accent
#47E19C
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #284312

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

Preview Lab → · Contrast checker → · Palette generator →

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