#285F12#285F12

#285F12 is a dark, vivid green. Relative luminance 0.087; OKLCH L 43.2% C 0.122 H 138.6°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#285F12
RGBrgb(40, 95, 18)
HSLhsl(103, 68%, 22%)
HSVhsv(103, 81%, 37%)
CMYKcmyk(57.9%, 0%, 81.1%, 62.7%)
CIE-LABlab(35.36, -33.08, 35.96)
CIE-LCHlch(35.36, 48.86, 132.61°)
OKLaboklab(43.18% -0.0913 0.0805)
OKLCHoklch(43.18% 0.122 138.6)
XYZxyz(5.0763, 8.6788, 1.9798)
Luminance0.0868 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285F12 #49125F
analogous
#4F5F12 #285F12 #125F22
triadic
#285F12 #12285F #5F1228
tetradic
#285F12 #124F5F #49125F #5F2212
square
#285F12 #124F5F #49125F #5F2212
split-complementary
#285F12 #22125F #5F124F
monochromatic
#0B1A05 #122C08 #285F12 #3E921C #53C625

Accessibility & contrast

On white

7.68
#285F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#285F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285F12
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285F12#FFFFFF#000000##FFFFFF
##285F121.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625603
Deuteranopia (green-blind)
#5B511A
Tritanopia (blue-blind)
#235B50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #285f12;
/* rgb */ color: rgb(40, 95, 18);
/* oklch */ color: oklch(43.2% 0.122 138.6);
Tailwind
colors: {
  custom: {
    50: '#698d56',
    500: '#285f12',
    950: '#000000',
  },
}
SCSS
$custom: #285f12;
$custom-light: #698d56;
$custom-dark: #000000;
JSON
{
  "hex": "#285f12",
  "rgb": {
    "r": 40,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 102.857,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.43179,
    "c": 0.12173,
    "h": 138.6
  },
  "luminance": 0.08679
}

Semantic roles & 50–950 ramp

primary
#285F12
secondary
#7B3697
accent
#3DEBB9
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #285F12

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

Preview Lab → · Contrast checker → · Palette generator →

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