#287240#287240

#287240 is a mid, moderate green. Relative luminance 0.129; OKLCH L 49.3% C 0.108 H 151.0°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#287240
RGBrgb(40, 114, 64)
HSLhsl(139, 48%, 30%)
HSVhsv(139, 65%, 45%)
CMYKcmyk(64.9%, 0%, 43.9%, 55.3%)
CIE-LABlab(42.54, -34.90, 21.13)
CIE-LCHlch(42.54, 40.80, 148.81°)
OKLaboklab(49.28% -0.0943 0.0523)
OKLCHoklch(49.28% 0.108 151)
XYZxyz(7.8172, 12.8551, 6.9188)
Luminance0.1286 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287240 #72285A
analogous
#357228 #287240 #287265
triadic
#287240 #402872 #724028
tetradic
#287240 #283572 #72285A #726528
square
#287240 #283572 #72285A #726528
split-complementary
#287240 #652872 #722835
monochromatic
#08170D #184527 #287240 #389F59 #52C276

Accessibility & contrast

On white

5.88
#287240 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#287240 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287240
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287240#FFFFFF#000000##FFFFFF
##2872401.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#72683C
Deuteranopia (green-blind)
#696243
Tritanopia (blue-blind)
#0E7066
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #287240;
/* rgb */ color: rgb(40, 114, 64);
/* oklch */ color: oklch(49.3% 0.108 151.0);
Tailwind
colors: {
  custom: {
    50: '#6b9b75',
    500: '#287240',
    950: '#000000',
  },
}
SCSS
$custom: #287240;
$custom-light: #6b9b75;
$custom-dark: #000000;
JSON
{
  "hex": "#287240",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 64
  },
  "hsl": {
    "h": 139.459,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.49277,
    "c": 0.10784,
    "h": 151
  },
  "luminance": 0.12856
}

Semantic roles & 50–950 ramp

primary
#287240
secondary
#A45289
accent
#50ACD8
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #287240

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

Preview Lab → · Contrast checker → · Palette generator →

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