#285018#285018

#285018 is a dark, moderate green. Relative luminance 0.063; OKLCH L 38.8% C 0.096 H 138.0°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#285018
RGBrgb(40, 80, 24)
HSLhsl(103, 54%, 20%)
HSVhsv(103, 70%, 31%)
CMYKcmyk(50%, 0%, 70%, 68.6%)
CIE-LABlab(30.04, -25.89, 27.83)
CIE-LCHlch(30.04, 38.01, 132.93°)
OKLaboklab(38.82% -0.0714 0.0644)
OKLCHoklch(38.82% 0.096 138)
XYZxyz(3.9085, 6.2541, 1.8652)
Luminance0.0625 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285018 #401850
analogous
#445018 #285018 #185024
triadic
#285018 #182850 #501828
tetradic
#285018 #184450 #401850 #502418
square
#285018 #184450 #401850 #502418
split-complementary
#285018 #241850 #501844
monochromatic
#0C1807 #10210A #285018 #407F26 #57AE34

Accessibility & contrast

On white

9.33
#285018 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#285018 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285018
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285018#FFFFFF#000000##FFFFFF
##2850181.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534911
Deuteranopia (green-blind)
#4D451D
Tritanopia (blue-blind)
#254D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #285018;
/* rgb */ color: rgb(40, 80, 24);
/* oklch */ color: oklch(38.8% 0.096 138.0);
Tailwind
colors: {
  custom: {
    50: '#668158',
    500: '#285018',
    950: '#000000',
  },
}
SCSS
$custom: #285018;
$custom-light: #668158;
$custom-dark: #000000;
JSON
{
  "hex": "#285018",
  "rgb": {
    "r": 40,
    "g": 80,
    "b": 24
  },
  "hsl": {
    "h": 102.857,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.38824,
    "c": 0.09613,
    "h": 138
  },
  "luminance": 0.06254
}

Semantic roles & 50–950 ramp

primary
#285018
secondary
#723D87
accent
#4BDDB3
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #285018

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

Preview Lab → · Contrast checker → · Palette generator →

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