#287213#287213

#287213 is a mid, vivid green. Relative luminance 0.125; OKLCH L 48.7% C 0.145 H 140.0°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#287213
RGBrgb(40, 114, 19)
HSLhsl(107, 71%, 26%)
HSVhsv(107, 83%, 45%)
CMYKcmyk(64.9%, 0%, 83.3%, 55.3%)
CIE-LABlab(42.05, -40.53, 42.01)
CIE-LCHlch(42.05, 58.38, 133.97°)
OKLaboklab(48.71% -0.1113 0.0933)
OKLCHoklch(48.71% 0.145 140)
XYZxyz(7.0096, 12.5321, 2.6655)
Luminance0.1253 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287213 #5D1372
analogous
#577213 #287213 #13722D
triadic
#287213 #132872 #721328
tetradic
#287213 #135772 #5D1372 #722D13
square
#287213 #135772 #5D1372 #722D13
split-complementary
#287213 #2D1372 #721357
monochromatic
#091A04 #163E0A #287213 #3AA61C #4DDB25

Accessibility & contrast

On white

5.99
#287213 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#287213 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287213
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287213#FFFFFF#000000##FFFFFF
##2872131.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756700
Deuteranopia (green-blind)
#6C611E
Tritanopia (blue-blind)
#1D6E61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #287213;
/* rgb */ color: rgb(40, 114, 19);
/* oklch */ color: oklch(48.7% 0.145 140.0);
Tailwind
colors: {
  custom: {
    50: '#6d9b5a',
    500: '#287213',
    950: '#000000',
  },
}
SCSS
$custom: #287213;
$custom-light: #6d9b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#287213",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 19
  },
  "hsl": {
    "h": 106.737,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.48709,
    "c": 0.14525,
    "h": 140
  },
  "luminance": 0.12533
}

Semantic roles & 50–950 ramp

primary
#287213
secondary
#9038A9
accent
#3AEEC6
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #287213

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

Preview Lab → · Contrast checker → · Palette generator →

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