#287342#287342

#287342 is a mid, moderate green. Relative luminance 0.131; OKLCH L 49.6% C 0.107 H 151.7°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#287342
RGBrgb(40, 115, 66)
HSLhsl(141, 48%, 30%)
HSVhsv(141, 65%, 45%)
CMYKcmyk(65.2%, 0%, 42.6%, 54.9%)
CIE-LABlab(42.92, -34.95, 20.48)
CIE-LCHlch(42.92, 40.51, 149.63°)
OKLaboklab(49.6% -0.0945 0.0508)
OKLCHoklch(49.6% 0.107 151.7)
XYZxyz(7.9885, 13.1051, 7.2617)
Luminance0.1311 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287342 #732859
analogous
#337328 #287342 #287367
triadic
#287342 #422873 #734228
tetradic
#287342 #283373 #732859 #736728
square
#287342 #283373 #732859 #736728
split-complementary
#287342 #672873 #732833
monochromatic
#08180E #184628 #287342 #38A05C #52C379

Accessibility & contrast

On white

5.80
#287342 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#287342 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287342
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287342#FFFFFF#000000##FFFFFF
##2873421.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#73693F
Deuteranopia (green-blind)
#6A6345
Tritanopia (blue-blind)
#0C7167
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #287342;
/* rgb */ color: rgb(40, 115, 66);
/* oklch */ color: oklch(49.6% 0.107 151.7);
Tailwind
colors: {
  custom: {
    50: '#6b9c77',
    500: '#287342',
    950: '#000000',
  },
}
SCSS
$custom: #287342;
$custom-light: #6b9c77;
$custom-dark: #000000;
JSON
{
  "hex": "#287342",
  "rgb": {
    "r": 40,
    "g": 115,
    "b": 66
  },
  "hsl": {
    "h": 140.8,
    "s": 48.387,
    "l": 30.392
  },
  "oklch": {
    "l": 0.49599,
    "c": 0.10727,
    "h": 151.7
  },
  "luminance": 0.13106
}

Semantic roles & 50–950 ramp

primary
#287342
secondary
#A55288
accent
#50A9D8
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #287342

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

Preview Lab → · Contrast checker → · Palette generator →

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