#285118#285118

#285118 is a dark, moderate green. Relative luminance 0.064; OKLCH L 39.1% C 0.098 H 138.1°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#285118
RGBrgb(40, 81, 24)
HSLhsl(103, 54%, 21%)
HSVhsv(103, 70%, 32%)
CMYKcmyk(50.6%, 0%, 70.4%, 68.2%)
CIE-LABlab(30.40, -26.36, 28.22)
CIE-LCHlch(30.40, 38.62, 133.04°)
OKLaboklab(39.12% -0.0727 0.0652)
OKLCHoklch(39.12% 0.098 138.1)
XYZxyz(3.9822, 6.4017, 1.8898)
Luminance0.0640 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285118 #411851
analogous
#445118 #285118 #185124
triadic
#285118 #182851 #511828
tetradic
#285118 #184451 #411851 #512418
square
#285118 #184451 #411851 #512418
split-complementary
#285118 #241851 #511844
monochromatic
#0C1807 #11220A #285118 #3F8026 #57AF34

Accessibility & contrast

On white

9.21
#285118 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#285118 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285118
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285118#FFFFFF#000000##FFFFFF
##2851181.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A11
Deuteranopia (green-blind)
#4E461D
Tritanopia (blue-blind)
#254E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #285118;
/* rgb */ color: rgb(40, 81, 24);
/* oklch */ color: oklch(39.1% 0.098 138.1);
Tailwind
colors: {
  custom: {
    50: '#668258',
    500: '#285118',
    950: '#000000',
  },
}
SCSS
$custom: #285118;
$custom-light: #668258;
$custom-dark: #000000;
JSON
{
  "hex": "#285118",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 24
  },
  "hsl": {
    "h": 103.158,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.39119,
    "c": 0.09764,
    "h": 138.1
  },
  "luminance": 0.06402
}

Semantic roles & 50–950 ramp

primary
#285118
secondary
#733D88
accent
#4ADEB4
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #285118

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

Preview Lab → · Contrast checker → · Palette generator →

#285118 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva