#28512B#28512B

#28512B is a dark, moderate green. Relative luminance 0.065; OKLCH L 39.4% C 0.078 H 145.4°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#28512B
RGBrgb(40, 81, 43)
HSLhsl(124, 34%, 24%)
HSVhsv(124, 51%, 32%)
CMYKcmyk(50.6%, 0%, 46.9%, 68.2%)
CIE-LABlab(30.66, -23.63, 17.99)
CIE-LCHlch(30.66, 29.70, 142.71°)
OKLaboklab(39.42% -0.0642 0.0442)
OKLCHoklch(39.42% 0.078 145.4)
XYZxyz(4.2533, 6.5101, 3.3175)
Luminance0.0651 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28512B #51284E
analogous
#395128 #28512B #28513F
triadic
#28512B #2B2851 #512B28
tetradic
#28512B #283951 #51284E #513F28
square
#28512B #283951 #51284E #513F28
split-complementary
#28512B #3F2851 #512839
monochromatic
#0A140B #142815 #28512B #3C7A41 #50A356

Accessibility & contrast

On white

9.12
#28512B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#28512B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28512B
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28512B#FFFFFF#000000##FFFFFF
##28512B1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28512b;
/* rgb */ color: rgb(40, 81, 43);
/* oklch */ color: oklch(39.4% 0.078 145.4);
Tailwind
colors: {
  custom: {
    50: '#658265',
    500: '#28512b',
    950: '#000000',
  },
}
SCSS
$custom: #28512b;
$custom-light: #658265;
$custom-dark: #000000;
JSON
{
  "hex": "#28512b",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 43
  },
  "hsl": {
    "h": 124.39,
    "s": 33.884,
    "l": 23.725
  },
  "oklch": {
    "l": 0.39416,
    "c": 0.07798,
    "h": 145.4
  },
  "luminance": 0.0651
}

Semantic roles & 50–950 ramp

primary
#28512B
secondary
#845180
accent
#5EC2CA
background
#F6F8F6
surface
#EBEFEB
border
#C6CAC6
text
#060A05
muted
#7A7C7A

Preview Lab

Preview with #28512B

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

Preview Lab → · Contrast checker → · Palette generator →

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