#287315#287315

#287315 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.0% C 0.145 H 140.3°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#287315
RGBrgb(40, 115, 21)
HSLhsl(108, 69%, 27%)
HSVhsv(108, 82%, 45%)
CMYKcmyk(65.2%, 0%, 81.7%, 54.9%)
CIE-LABlab(42.41, -40.78, 41.69)
CIE-LCHlch(42.41, 58.32, 134.37°)
OKLaboklab(49.01% -0.1118 0.093)
OKLCHoklch(49.01% 0.145 140.3)
XYZxyz(7.1408, 12.7660, 2.7971)
Luminance0.1277 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287315 #601573
analogous
#577315 #287315 #157331
triadic
#287315 #152873 #731528
tetradic
#287315 #155773 #601573 #733115
square
#287315 #155773 #601573 #733115
split-complementary
#287315 #311573 #731557
monochromatic
#091A05 #163F0C #287315 #3AA71E #4DD82A

Accessibility & contrast

On white

5.91
#287315 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#287315 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287315
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287315#FFFFFF#000000##FFFFFF
##2873151.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766800
Deuteranopia (green-blind)
#6D6220
Tritanopia (blue-blind)
#1D6F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #287315;
/* rgb */ color: rgb(40, 115, 21);
/* oklch */ color: oklch(49.0% 0.145 140.3);
Tailwind
colors: {
  custom: {
    50: '#6d9c5b',
    500: '#287315',
    950: '#000000',
  },
}
SCSS
$custom: #287315;
$custom-light: #6d9c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#287315",
  "rgb": {
    "r": 40,
    "g": 115,
    "b": 21
  },
  "hsl": {
    "h": 107.872,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.4901,
    "c": 0.14544,
    "h": 140.3
  },
  "luminance": 0.12767
}

Semantic roles & 50–950 ramp

primary
#287315
secondary
#933BA9
accent
#3CECC8
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #287315

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

Preview Lab → · Contrast checker → · Palette generator →

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