#287E40#287E40

#287E40 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.6% C 0.125 H 149.1°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#287E40
RGBrgb(40, 126, 64)
HSLhsl(137, 52%, 33%)
HSVhsv(137, 68%, 49%)
CMYKcmyk(68.3%, 0%, 49.2%, 50.6%)
CIE-LABlab(46.63, -39.90, 26.37)
CIE-LCHlch(46.63, 47.83, 146.54°)
OKLaboklab(52.65% -0.1076 0.0644)
OKLCHoklch(52.65% 0.125 149.1)
XYZxyz(9.2606, 15.7420, 7.4000)
Luminance0.1574 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287E40 #7E2866
analogous
#3B7E28 #287E40 #287E6B
triadic
#287E40 #40287E #7E4028
tetradic
#287E40 #283B7E #7E2866 #7E6B28
square
#287E40 #283B7E #7E2866 #7E6B28
split-complementary
#287E40 #6B287E #7E283B
monochromatic
#0B2111 #195028 #287E40 #37AC58 #57CA77

Accessibility & contrast

On white

5.06
#287E40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#287E40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287E40
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287E40#FFFFFF#000000##FFFFFF
##287E401.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F733B
Deuteranopia (green-blind)
#746C44
Tritanopia (blue-blind)
#057C6F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287e40;
/* rgb */ color: rgb(40, 126, 64);
/* oklch */ color: oklch(52.6% 0.125 149.1);
Tailwind
colors: {
  custom: {
    50: '#6da476',
    500: '#287e40',
    950: '#000000',
  },
}
SCSS
$custom: #287e40;
$custom-light: #6da476;
$custom-dark: #000000;
JSON
{
  "hex": "#287e40",
  "rgb": {
    "r": 40,
    "g": 126,
    "b": 64
  },
  "hsl": {
    "h": 136.744,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.52646,
    "c": 0.12537,
    "h": 149.1
  },
  "luminance": 0.15743
}

Semantic roles & 50–950 ramp

primary
#287E40
secondary
#AF5395
accent
#4DB3DB
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#080F08
muted
#7A7F7B

Preview Lab

Preview with #287E40

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

Preview Lab → · Contrast checker → · Palette generator →

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