#28512D#28512D

#28512D is a dark, moderate green. Relative luminance 0.065; OKLCH L 39.5% C 0.076 H 146.6°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#28512D
RGBrgb(40, 81, 45)
HSLhsl(127, 34%, 24%)
HSVhsv(127, 51%, 32%)
CMYKcmyk(50.6%, 0%, 44.4%, 68.2%)
CIE-LABlab(30.70, -23.26, 16.83)
CIE-LCHlch(30.70, 28.71, 144.11°)
OKLaboklab(39.46% -0.0632 0.0416)
OKLCHoklch(39.46% 0.076 146.6)
XYZxyz(4.2909, 6.5251, 3.5155)
Luminance0.0653 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28512D #51284C
analogous
#375128 #28512D #285141
triadic
#28512D #2D2851 #512D28
tetradic
#28512D #283751 #51284C #514128
square
#28512D #283751 #51284C #514128
split-complementary
#28512D #412851 #512837
monochromatic
#0A140B #142816 #28512D #3C7A44 #50A35B

Accessibility & contrast

On white

9.11
#28512D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#28512D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28512D
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28512D#FFFFFF#000000##FFFFFF
##28512D1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524B2A
Deuteranopia (green-blind)
#4C472F
Tritanopia (blue-blind)
#224F48
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #28512d;
/* rgb */ color: rgb(40, 81, 45);
/* oklch */ color: oklch(39.5% 0.076 146.6);
Tailwind
colors: {
  custom: {
    50: '#658266',
    500: '#28512d',
    950: '#000000',
  },
}
SCSS
$custom: #28512d;
$custom-light: #658266;
$custom-dark: #000000;
JSON
{
  "hex": "#28512d",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 45
  },
  "hsl": {
    "h": 127.317,
    "s": 33.884,
    "l": 23.725
  },
  "oklch": {
    "l": 0.39457,
    "c": 0.07569,
    "h": 146.6
  },
  "luminance": 0.06525
}

Semantic roles & 50–950 ramp

primary
#28512D
secondary
#84517D
accent
#5EBDCA
background
#F6F8F6
surface
#EBEFEB
border
#C6CAC6
text
#060A06
muted
#7A7C7A

Preview Lab

Preview with #28512D

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

Preview Lab → · Contrast checker → · Palette generator →

#28512D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva