#285128#285128

#285128 is a dark, moderate green. Relative luminance 0.065; OKLCH L 39.4% C 0.081 H 143.8°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#285128
RGBrgb(40, 81, 40)
HSLhsl(120, 34%, 24%)
HSVhsv(120, 51%, 32%)
CMYKcmyk(50.6%, 0%, 50.6%, 68.2%)
CIE-LABlab(30.61, -24.15, 19.71)
CIE-LCHlch(30.61, 31.17, 140.78°)
OKLaboklab(39.36% -0.0657 0.048)
OKLCHoklch(39.36% 0.081 143.8)
XYZxyz(4.2003, 6.4889, 3.0382)
Luminance0.0649 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285128 #512851
analogous
#3C5128 #285128 #28513C
triadic
#285128 #282851 #512828
tetradic
#285128 #283C51 #512851 #513C28
square
#285128 #283C51 #512851 #513C28
split-complementary
#285128 #3C2851 #51283C
monochromatic
#0A140A #142814 #285128 #3C7A3C #50A350

Accessibility & contrast

On white

9.14
#285128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#285128 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285128
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285128#FFFFFF#000000##FFFFFF
##2851281.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534A25
Deuteranopia (green-blind)
#4D472B
Tritanopia (blue-blind)
#234F47
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #285128;
/* rgb */ color: rgb(40, 81, 40);
/* oklch */ color: oklch(39.4% 0.081 143.8);
Tailwind
colors: {
  custom: {
    50: '#658262',
    500: '#285128',
    950: '#000000',
  },
}
SCSS
$custom: #285128;
$custom-light: #658262;
$custom-dark: #000000;
JSON
{
  "hex": "#285128",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 40
  },
  "hsl": {
    "h": 120,
    "s": 33.884,
    "l": 23.725
  },
  "oklch": {
    "l": 0.39358,
    "c": 0.08139,
    "h": 143.8
  },
  "luminance": 0.06489
}

Semantic roles & 50–950 ramp

primary
#285128
secondary
#845184
accent
#5ECACA
background
#F6F8F5
surface
#EBEFEA
border
#C6CAC6
text
#060A05
muted
#7A7C79

Preview Lab

Preview with #285128

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

Preview Lab → · Contrast checker → · Palette generator →

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