#287531#287531

#287531 is a mid, vivid green. Relative luminance 0.134; OKLCH L 49.9% C 0.127 H 145.3°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#287531
RGBrgb(40, 117, 49)
HSLhsl(127, 49%, 31%)
HSVhsv(127, 66%, 46%)
CMYKcmyk(65.8%, 0%, 58.1%, 54.1%)
CIE-LABlab(43.35, -38.64, 30.33)
CIE-LCHlch(43.35, 49.12, 141.87°)
OKLaboklab(49.87% -0.1045 0.0723)
OKLCHoklch(49.87% 0.127 145.3)
XYZxyz(7.7902, 13.3947, 5.0800)
Luminance0.1340 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287531 #75286C
analogous
#457528 #287531 #287557
triadic
#287531 #312875 #753128
tetradic
#287531 #284575 #75286C #755728
square
#287531 #284575 #75286C #755728
split-complementary
#287531 #572875 #752845
monochromatic
#091A0B #18471E #287531 #38A344 #53C460

Accessibility & contrast

On white

5.71
#287531 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#287531 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287531
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287531#FFFFFF#000000##FFFFFF
##2875311.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776A2B
Deuteranopia (green-blind)
#6D6436
Tritanopia (blue-blind)
#157266
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #287531;
/* rgb */ color: rgb(40, 117, 49);
/* oklch */ color: oklch(49.9% 0.127 145.3);
Tailwind
colors: {
  custom: {
    50: '#6c9d6b',
    500: '#287531',
    950: '#000000',
  },
}
SCSS
$custom: #287531;
$custom-light: #6c9d6b;
$custom-dark: #000000;
JSON
{
  "hex": "#287531",
  "rgb": {
    "r": 40,
    "g": 117,
    "b": 49
  },
  "hsl": {
    "h": 127.013,
    "s": 49.045,
    "l": 30.784
  },
  "oklch": {
    "l": 0.4987,
    "c": 0.12708,
    "h": 145.3
  },
  "luminance": 0.13395
}

Semantic roles & 50–950 ramp

primary
#287531
secondary
#A7529D
accent
#4FC9D9
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070E07
muted
#7A7E7A

Preview Lab

Preview with #287531

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

Preview Lab → · Contrast checker → · Palette generator →

#287531 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva