#285D21#285D21

#285D21 is a dark, moderate green. Relative luminance 0.084; OKLCH L 42.7% C 0.107 H 141.4°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#285D21
RGBrgb(40, 93, 33)
HSLhsl(113, 48%, 25%)
HSVhsv(113, 65%, 36%)
CMYKcmyk(57%, 0%, 64.5%, 63.5%)
CIE-LABlab(34.78, -30.74, 28.58)
CIE-LCHlch(34.78, 41.98, 137.08°)
OKLaboklab(42.75% -0.0839 0.067)
OKLCHoklch(42.75% 0.107 141.4)
XYZxyz(5.0637, 8.3892, 2.7910)
Luminance0.0839 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285D21 #56215D
analogous
#465D21 #285D21 #215D38
triadic
#285D21 #21285D #5D2128
tetradic
#285D21 #21465D #56215D #5D3821
square
#285D21 #21465D #56215D #5D3821
split-complementary
#285D21 #38215D #5D2146
monochromatic
#0A1708 #153011 #285D21 #3B8A31 #4FB741

Accessibility & contrast

On white

7.84
#285D21 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#285D21 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285D21
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285D21#FFFFFF#000000##FFFFFF
##285D211.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F551B
Deuteranopia (green-blind)
#585026
Tritanopia (blue-blind)
#215A50
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #285d21;
/* rgb */ color: rgb(40, 93, 33);
/* oklch */ color: oklch(42.7% 0.107 141.4);
Tailwind
colors: {
  custom: {
    50: '#688b5f',
    500: '#285d21',
    950: '#000000',
  },
}
SCSS
$custom: #285d21;
$custom-light: #688b5f;
$custom-dark: #000000;
JSON
{
  "hex": "#285d21",
  "rgb": {
    "r": 40,
    "g": 93,
    "b": 33
  },
  "hsl": {
    "h": 113,
    "s": 47.619,
    "l": 24.706
  },
  "oklch": {
    "l": 0.42745,
    "c": 0.10742,
    "h": 141.4
  },
  "luminance": 0.0839
}

Semantic roles & 50–950 ramp

primary
#285D21
secondary
#894991
accent
#51D7C8
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060C04
muted
#7A7D79

Preview Lab

Preview with #285D21

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

Preview Lab → · Contrast checker → · Palette generator →

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