#287D25#287D25

#287D25 is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.0% C 0.148 H 142.6°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#287D25
RGBrgb(40, 125, 37)
HSLhsl(118, 54%, 32%)
HSVhsv(118, 70%, 49%)
CMYKcmyk(68%, 0%, 70.4%, 51%)
CIE-LABlab(45.98, -43.17, 39.05)
CIE-LCHlch(45.98, 58.21, 137.87°)
OKLaboklab(52% -0.1174 0.0897)
OKLCHoklch(52% 0.148 142.6)
XYZxyz(8.5421, 15.2510, 4.2435)
Luminance0.1525 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D25 #7A257D
analogous
#547D25 #287D25 #257D4E
triadic
#287D25 #25287D #7D2528
tetradic
#287D25 #25547D #7A257D #7D4E25
square
#287D25 #25547D #7A257D #7D4E25
split-complementary
#287D25 #4E257D #7D2554
monochromatic
#0A1F09 #194E17 #287D25 #37AC33 #55CB51

Accessibility & contrast

On white

5.18
#287D25 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#287D25 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287D25
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287D25#FFFFFF#000000##FFFFFF
##287D251.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807119
Deuteranopia (green-blind)
#766A2D
Tritanopia (blue-blind)
#15796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287d25;
/* rgb */ color: rgb(40, 125, 37);
/* oklch */ color: oklch(52.0% 0.148 142.6);
Tailwind
colors: {
  custom: {
    50: '#6ea364',
    500: '#287d25',
    950: '#000000',
  },
}
SCSS
$custom: #287d25;
$custom-light: #6ea364;
$custom-dark: #000000;
JSON
{
  "hex": "#287d25",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 37
  },
  "hsl": {
    "h": 117.955,
    "s": 54.321,
    "l": 31.765
  },
  "oklch": {
    "l": 0.51999,
    "c": 0.14775,
    "h": 142.6
  },
  "luminance": 0.15252
}

Semantic roles & 50–950 ramp

primary
#287D25
secondary
#AC4FAF
accent
#4ADED9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #287D25

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

Preview Lab → · Contrast checker → · Palette generator →

#287D25 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva