#28512A#28512A

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

Color values

HEX#28512A
RGBrgb(40, 81, 42)
HSLhsl(123, 34%, 24%)
HSVhsv(123, 51%, 32%)
CMYKcmyk(50.6%, 0%, 48.1%, 68.2%)
CIE-LABlab(30.65, -23.80, 18.56)
CIE-LCHlch(30.65, 30.19, 142.05°)
OKLaboklab(39.4% -0.0647 0.0455)
OKLCHoklch(39.4% 0.079 144.9)
XYZxyz(4.2352, 6.5028, 3.2220)
Luminance0.0650 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28512A #51284F
analogous
#3A5128 #28512A #28513E
triadic
#28512A #2A2851 #512A28
tetradic
#28512A #283A51 #51284F #513E28
square
#28512A #283A51 #51284F #513E28
split-complementary
#28512A #3E2851 #51283A
monochromatic
#0A140B #142815 #28512A #3C7A3F #50A354

Accessibility & contrast

On white

9.13
#28512A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28512A
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28512A#FFFFFF#000000##FFFFFF
##28512A1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28512a;
/* rgb */ color: rgb(40, 81, 42);
/* oklch */ color: oklch(39.4% 0.079 144.9);
Tailwind
colors: {
  custom: {
    50: '#658264',
    500: '#28512a',
    950: '#000000',
  },
}
SCSS
$custom: #28512a;
$custom-light: #658264;
$custom-dark: #000000;
JSON
{
  "hex": "#28512a",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 42
  },
  "hsl": {
    "h": 122.927,
    "s": 33.884,
    "l": 23.725
  },
  "oklch": {
    "l": 0.39397,
    "c": 0.07912,
    "h": 144.9
  },
  "luminance": 0.06503
}

Semantic roles & 50–950 ramp

primary
#28512A
secondary
#845181
accent
#5EC5CA
background
#F6F8F6
surface
#EBEFEB
border
#C6CAC6
text
#060A05
muted
#7A7C7A

Preview Lab

Preview with #28512A

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

Preview Lab → · Contrast checker → · Palette generator →

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