#285012#285012

#285012 is a dark, moderate yellow-green. Relative luminance 0.062; OKLCH L 38.8% C 0.101 H 136.7°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#285012
RGBrgb(40, 80, 18)
HSLhsl(99, 63%, 19%)
HSVhsv(99, 78%, 31%)
CMYKcmyk(50%, 0%, 77.5%, 68.6%)
CIE-LABlab(29.99, -26.48, 30.59)
CIE-LCHlch(29.99, 40.46, 130.87°)
OKLaboklab(38.76% -0.0735 0.0693)
OKLCHoklch(38.76% 0.101 136.7)
XYZxyz(3.8528, 6.2319, 1.5720)
Luminance0.0623 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285012 #3A1250
analogous
#475012 #285012 #12501B
triadic
#285012 #122850 #501228
tetradic
#285012 #124750 #3A1250 #501B12
square
#285012 #124750 #3A1250 #501B12
split-complementary
#285012 #1B1250 #501247
monochromatic
#0C1906 #0F1E07 #285012 #41821D #5AB428

Accessibility & contrast

On white

9.35
#285012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#285012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285012
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285012#FFFFFF#000000##FFFFFF
##2850121.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534908
Deuteranopia (green-blind)
#4E4518
Tritanopia (blue-blind)
#264D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #285012;
/* rgb */ color: rgb(40, 80, 18);
/* oklch */ color: oklch(38.8% 0.101 136.7);
Tailwind
colors: {
  custom: {
    50: '#668154',
    500: '#285012',
    950: '#000000',
  },
}
SCSS
$custom: #285012;
$custom-light: #668154;
$custom-dark: #000000;
JSON
{
  "hex": "#285012",
  "rgb": {
    "r": 40,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 98.71,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.38761,
    "c": 0.10101,
    "h": 136.7
  },
  "luminance": 0.06232
}

Semantic roles & 50–950 ramp

primary
#285012
secondary
#6B3589
accent
#41E6AC
background
#F6F7F5
surface
#EBEEE8
border
#C6C9C4
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #285012

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

Preview Lab → · Contrast checker → · Palette generator →

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