#287331#287331

#287331 is a mid, vivid green. Relative luminance 0.129; OKLCH L 49.3% C 0.124 H 145.5°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#287331
RGBrgb(40, 115, 49)
HSLhsl(127, 48%, 30%)
HSVhsv(127, 65%, 45%)
CMYKcmyk(65.2%, 0%, 57.4%, 54.9%)
CIE-LABlab(42.66, -37.83, 29.51)
CIE-LCHlch(42.66, 47.98, 142.05°)
OKLaboklab(49.3% -0.1024 0.0705)
OKLCHoklch(49.3% 0.124 145.5)
XYZxyz(7.5597, 12.9336, 5.0032)
Luminance0.1293 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287331 #73286A
analogous
#447328 #287331 #287356
triadic
#287331 #312873 #733128
tetradic
#287331 #284473 #73286A #735628
square
#287331 #284473 #73286A #735628
split-complementary
#287331 #562873 #732844
monochromatic
#08180A #18461E #287331 #38A044 #52C360

Accessibility & contrast

On white

5.85
#287331 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#287331 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287331
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287331#FFFFFF#000000##FFFFFF
##2873311.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75692B
Deuteranopia (green-blind)
#6B6236
Tritanopia (blue-blind)
#167064
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #287331;
/* rgb */ color: rgb(40, 115, 49);
/* oklch */ color: oklch(49.3% 0.124 145.5);
Tailwind
colors: {
  custom: {
    50: '#6b9c6b',
    500: '#287331',
    950: '#000000',
  },
}
SCSS
$custom: #287331;
$custom-light: #6b9c6b;
$custom-dark: #000000;
JSON
{
  "hex": "#287331",
  "rgb": {
    "r": 40,
    "g": 115,
    "b": 49
  },
  "hsl": {
    "h": 127.2,
    "s": 48.387,
    "l": 30.392
  },
  "oklch": {
    "l": 0.49302,
    "c": 0.12427,
    "h": 145.5
  },
  "luminance": 0.12934
}

Semantic roles & 50–950 ramp

primary
#287331
secondary
#A5529B
accent
#50C8D8
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070E07
muted
#7A7E7A

Preview Lab

Preview with #287331

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

Preview Lab → · Contrast checker → · Palette generator →

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