#287231#287231

#287231 is a mid, vivid green. Relative luminance 0.127; OKLCH L 49.0% C 0.123 H 145.5°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#287231
RGBrgb(40, 114, 49)
HSLhsl(127, 48%, 30%)
HSVhsv(127, 65%, 45%)
CMYKcmyk(64.9%, 0%, 57%, 55.3%)
CIE-LABlab(42.32, -37.43, 29.09)
CIE-LCHlch(42.32, 47.40, 142.14°)
OKLaboklab(49.02% -0.1013 0.0696)
OKLCHoklch(49.02% 0.123 145.5)
XYZxyz(7.4463, 12.7068, 4.9654)
Luminance0.1271 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287231 #722869
analogous
#447228 #287231 #287256
triadic
#287231 #312872 #723128
tetradic
#287231 #284472 #722869 #725628
square
#287231 #284472 #722869 #725628
split-complementary
#287231 #562872 #722844
monochromatic
#08170A #18451E #287231 #389F44 #52C260

Accessibility & contrast

On white

5.93
#287231 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#287231 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287231
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287231#FFFFFF#000000##FFFFFF
##2872311.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#74682B
Deuteranopia (green-blind)
#6B6136
Tritanopia (blue-blind)
#166F63
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #287231;
/* rgb */ color: rgb(40, 114, 49);
/* oklch */ color: oklch(49.0% 0.123 145.5);
Tailwind
colors: {
  custom: {
    50: '#6b9b6b',
    500: '#287231',
    950: '#000000',
  },
}
SCSS
$custom: #287231;
$custom-light: #6b9b6b;
$custom-dark: #000000;
JSON
{
  "hex": "#287231",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 49
  },
  "hsl": {
    "h": 127.297,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.49017,
    "c": 0.12284,
    "h": 145.5
  },
  "luminance": 0.12707
}

Semantic roles & 50–950 ramp

primary
#287231
secondary
#A4529A
accent
#50C7D8
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070E07
muted
#7A7E7A

Preview Lab

Preview with #287231

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

Preview Lab → · Contrast checker → · Palette generator →

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