#285C2F#285C2F

#285C2F is a dark, moderate green. Relative luminance 0.083; OKLCH L 42.7% C 0.092 H 146.5°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#285C2F
RGBrgb(40, 92, 47)
HSLhsl(128, 39%, 26%)
HSVhsv(128, 57%, 36%)
CMYKcmyk(56.5%, 0%, 48.9%, 63.9%)
CIE-LABlab(34.62, -28.20, 20.69)
CIE-LCHlch(34.62, 34.98, 143.73°)
OKLaboklab(42.68% -0.0765 0.0506)
OKLCHoklch(42.68% 0.092 146.5)
XYZxyz(5.2150, 8.3102, 4.0180)
Luminance0.0831 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285C2F #5C2855
analogous
#3B5C28 #285C2F #285C49
triadic
#285C2F #2F285C #5C2F28
tetradic
#285C2F #283B5C #5C2855 #5C4928
square
#285C2F #283B5C #5C2855 #5C4928
split-complementary
#285C2F #49285C #5C283B
monochromatic
#09150B #153119 #285C2F #3B8745 #4DB15B

Accessibility & contrast

On white

7.89
#285C2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#285C2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285C2F
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285C2F#FFFFFF#000000##FFFFFF
##285C2F1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D542C
Deuteranopia (green-blind)
#565032
Tritanopia (blue-blind)
#1F5A51
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #285c2f;
/* rgb */ color: rgb(40, 92, 47);
/* oklch */ color: oklch(42.7% 0.092 146.5);
Tailwind
colors: {
  custom: {
    50: '#678b68',
    500: '#285c2f',
    950: '#000000',
  },
}
SCSS
$custom: #285c2f;
$custom-light: #678b68;
$custom-dark: #000000;
JSON
{
  "hex": "#285c2f",
  "rgb": {
    "r": 40,
    "g": 92,
    "b": 47
  },
  "hsl": {
    "h": 128.077,
    "s": 39.394,
    "l": 25.882
  },
  "oklch": {
    "l": 0.42676,
    "c": 0.0917,
    "h": 146.5
  },
  "luminance": 0.08311
}

Semantic roles & 50–950 ramp

primary
#285C2F
secondary
#8F5186
accent
#59BFCF
background
#F6F8F6
surface
#EBF0EB
border
#C6CBC6
text
#060C06
muted
#7A7D7A

Preview Lab

Preview with #285C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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