#287540#287540

#287540 is a mid, moderate green. Relative luminance 0.135; OKLCH L 50.1% C 0.112 H 150.5°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#287540
RGBrgb(40, 117, 64)
HSLhsl(139, 49%, 31%)
HSVhsv(139, 66%, 46%)
CMYKcmyk(65.8%, 0%, 45.3%, 54.1%)
CIE-LABlab(43.57, -36.18, 22.46)
CIE-LCHlch(43.57, 42.59, 148.17°)
OKLaboklab(50.12% -0.0977 0.0554)
OKLCHoklch(50.12% 0.112 150.5)
XYZxyz(8.1611, 13.5430, 7.0335)
Luminance0.1354 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287540 #75285D
analogous
#367528 #287540 #287566
triadic
#287540 #402875 #754028
tetradic
#287540 #283675 #75285D #756628
square
#287540 #283675 #75285D #756628
split-complementary
#287540 #662875 #752836
monochromatic
#091A0E #184727 #287540 #38A359 #53C476

Accessibility & contrast

On white

5.66
#287540 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#287540 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287540
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287540#FFFFFF#000000##FFFFFF
##2875401.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766B3C
Deuteranopia (green-blind)
#6C6444
Tritanopia (blue-blind)
#0C7368
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #287540;
/* rgb */ color: rgb(40, 117, 64);
/* oklch */ color: oklch(50.1% 0.112 150.5);
Tailwind
colors: {
  custom: {
    50: '#6b9d75',
    500: '#287540',
    950: '#000000',
  },
}
SCSS
$custom: #287540;
$custom-light: #6b9d75;
$custom-dark: #000000;
JSON
{
  "hex": "#287540",
  "rgb": {
    "r": 40,
    "g": 117,
    "b": 64
  },
  "hsl": {
    "h": 138.701,
    "s": 49.045,
    "l": 30.784
  },
  "oklch": {
    "l": 0.50121,
    "c": 0.11231,
    "h": 150.5
  },
  "luminance": 0.13544
}

Semantic roles & 50–950 ramp

primary
#287540
secondary
#A7528C
accent
#4FAED9
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #287540

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

Preview Lab → · Contrast checker → · Palette generator →

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