#28512C#28512C

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

Color values

HEX#28512C
RGBrgb(40, 81, 44)
HSLhsl(126, 34%, 24%)
HSVhsv(126, 51%, 32%)
CMYKcmyk(50.6%, 0%, 45.7%, 68.2%)
CIE-LABlab(30.68, -23.44, 17.41)
CIE-LCHlch(30.68, 29.20, 143.40°)
OKLaboklab(39.44% -0.0637 0.043)
OKLCHoklch(39.44% 0.077 146)
XYZxyz(4.2719, 6.5175, 3.4153)
Luminance0.0652 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28512C #51284D
analogous
#385128 #28512C #285140
triadic
#28512C #2C2851 #512C28
tetradic
#28512C #283851 #51284D #514028
square
#28512C #283851 #51284D #514028
split-complementary
#28512C #402851 #512838
monochromatic
#0A140B #142816 #28512C #3C7A42 #50A359

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28512C#FFFFFF#000000##FFFFFF
##28512C1.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)
#524B29
Deuteranopia (green-blind)
#4C472E
Tritanopia (blue-blind)
#224F48
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #28512c;
/* rgb */ color: rgb(40, 81, 44);
/* oklch */ color: oklch(39.4% 0.077 146.0);
Tailwind
colors: {
  custom: {
    50: '#658265',
    500: '#28512c',
    950: '#000000',
  },
}
SCSS
$custom: #28512c;
$custom-light: #658265;
$custom-dark: #000000;
JSON
{
  "hex": "#28512c",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 44
  },
  "hsl": {
    "h": 125.854,
    "s": 33.884,
    "l": 23.725
  },
  "oklch": {
    "l": 0.39437,
    "c": 0.07684,
    "h": 146
  },
  "luminance": 0.06518
}

Semantic roles & 50–950 ramp

primary
#28512C
secondary
#84517F
accent
#5EBFCA
background
#F6F8F6
surface
#EBEFEB
border
#C6CAC6
text
#060A05
muted
#7A7C7A

Preview Lab

Preview with #28512C

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

Preview Lab → · Contrast checker → · Palette generator →

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