#285D18#285D18

#285D18 is a dark, moderate green. Relative luminance 0.083; OKLCH L 42.6% C 0.115 H 139.4°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#285D18
RGBrgb(40, 93, 24)
HSLhsl(106, 59%, 23%)
HSVhsv(106, 74%, 36%)
CMYKcmyk(57%, 0%, 74.2%, 63.5%)
CIE-LABlab(34.69, -31.73, 32.81)
CIE-LCHlch(34.69, 45.64, 134.04°)
OKLaboklab(42.64% -0.0872 0.0749)
OKLCHoklch(42.64% 0.115 139.4)
XYZxyz(4.9541, 8.3454, 2.2137)
Luminance0.0835 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285D18 #4D185D
analogous
#4A5D18 #285D18 #185D2A
triadic
#285D18 #18285D #5D1828
tetradic
#285D18 #184A5D #4D185D #5D2A18
square
#285D18 #184A5D #4D185D #5D2A18
split-complementary
#285D18 #2A185D #5D184A
monochromatic
#0A1806 #132C0B #285D18 #3D8E25 #52BE31

Accessibility & contrast

On white

7.87
#285D18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#285D18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285D18
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285D18#FFFFFF#000000##FFFFFF
##285D181.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#60540E
Deuteranopia (green-blind)
#59501E
Tritanopia (blue-blind)
#235A4F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #285d18;
/* rgb */ color: rgb(40, 93, 24);
/* oklch */ color: oklch(42.6% 0.115 139.4);
Tailwind
colors: {
  custom: {
    50: '#688b59',
    500: '#285d18',
    950: '#000000',
  },
}
SCSS
$custom: #285d18;
$custom-light: #688b59;
$custom-dark: #000000;
JSON
{
  "hex": "#285d18",
  "rgb": {
    "r": 40,
    "g": 93,
    "b": 24
  },
  "hsl": {
    "h": 106.087,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.42644,
    "c": 0.11496,
    "h": 139.4
  },
  "luminance": 0.08346
}

Semantic roles & 50–950 ramp

primary
#285D18
secondary
#803D93
accent
#46E2BE
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #285D18

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

Preview Lab → · Contrast checker → · Palette generator →

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