#285B28#285B28

#285B28 is a dark, moderate green. Relative luminance 0.081; OKLCH L 42.3% C 0.098 H 143.6°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#285B28
RGBrgb(40, 91, 40)
HSLhsl(120, 39%, 26%)
HSVhsv(120, 56%, 36%)
CMYKcmyk(56%, 0%, 56%, 64.3%)
CIE-LABlab(34.16, -28.88, 24.10)
CIE-LCHlch(34.16, 37.62, 140.15°)
OKLaboklab(42.27% -0.0785 0.0579)
OKLCHoklch(42.27% 0.098 143.6)
XYZxyz(4.9989, 8.0861, 3.3044)
Luminance0.0809 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285B28 #5B285B
analogous
#415B28 #285B28 #285B41
triadic
#285B28 #28285B #5B2828
tetradic
#285B28 #28415B #5B285B #5B4128
square
#285B28 #28415B #5B285B #5B4128
split-complementary
#285B28 #41285B #5B2841
monochromatic
#091509 #153015 #285B28 #3B863B #4DB04D

Accessibility & contrast

On white

8.02
#285B28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#285B28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285B28
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285B28#FFFFFF#000000##FFFFFF
##285B281.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5323
Deuteranopia (green-blind)
#564F2C
Tritanopia (blue-blind)
#20594F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #285b28;
/* rgb */ color: rgb(40, 91, 40);
/* oklch */ color: oklch(42.3% 0.098 143.6);
Tailwind
colors: {
  custom: {
    50: '#678a63',
    500: '#285b28',
    950: '#000000',
  },
}
SCSS
$custom: #285b28;
$custom-light: #678a63;
$custom-dark: #000000;
JSON
{
  "hex": "#285b28",
  "rgb": {
    "r": 40,
    "g": 91,
    "b": 40
  },
  "hsl": {
    "h": 120,
    "s": 38.931,
    "l": 25.686
  },
  "oklch": {
    "l": 0.42265,
    "c": 0.09754,
    "h": 143.6
  },
  "luminance": 0.08086
}

Semantic roles & 50–950 ramp

primary
#285B28
secondary
#8E518E
accent
#59CFCF
background
#F6F8F5
surface
#EBF0EA
border
#C6CBC6
text
#060C05
muted
#7A7D79

Preview Lab

Preview with #285B28

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

Preview Lab → · Contrast checker → · Palette generator →

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