#28512F#28512F

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

Color values

HEX#28512F
RGBrgb(40, 81, 47)
HSLhsl(130, 34%, 24%)
HSVhsv(130, 51%, 32%)
CMYKcmyk(50.6%, 0%, 42%, 68.2%)
CIE-LABlab(30.74, -22.88, 15.67)
CIE-LCHlch(30.74, 27.73, 145.60°)
OKLaboklab(39.5% -0.0622 0.039)
OKLCHoklch(39.5% 0.073 147.9)
XYZxyz(4.3303, 6.5409, 3.7231)
Luminance0.0654 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28512F #51284A
analogous
#355128 #28512F #285143
triadic
#28512F #2F2851 #512F28
tetradic
#28512F #283551 #51284A #514328
square
#28512F #283551 #51284A #514328
split-complementary
#28512F #432851 #512835
monochromatic
#0A140C #142817 #28512F #3C7A47 #50A35F

Accessibility & contrast

On white

9.10
#28512F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28512F
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28512F#FFFFFF#000000##FFFFFF
##28512F1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524B2D
Deuteranopia (green-blind)
#4C4731
Tritanopia (blue-blind)
#214F48
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #28512f;
/* rgb */ color: rgb(40, 81, 47);
/* oklch */ color: oklch(39.5% 0.073 147.9);
Tailwind
colors: {
  custom: {
    50: '#658268',
    500: '#28512f',
    950: '#000000',
  },
}
SCSS
$custom: #28512f;
$custom-light: #658268;
$custom-dark: #000000;
JSON
{
  "hex": "#28512f",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 47
  },
  "hsl": {
    "h": 130.244,
    "s": 33.884,
    "l": 23.725
  },
  "oklch": {
    "l": 0.395,
    "c": 0.07338,
    "h": 147.9
  },
  "luminance": 0.06541
}

Semantic roles & 50–950 ramp

primary
#28512F
secondary
#84517B
accent
#5EB8CA
background
#F6F8F6
surface
#EBEFEB
border
#C6CAC6
text
#060A06
muted
#7A7C7A

Preview Lab

Preview with #28512F

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

Preview Lab → · Contrast checker → · Palette generator →

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