#286912#286912

#286912 is a mid, vivid green. Relative luminance 0.106; OKLCH L 46.1% C 0.135 H 139.4°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#286912
RGBrgb(40, 105, 18)
HSLhsl(105, 71%, 24%)
HSVhsv(105, 83%, 41%)
CMYKcmyk(61.9%, 0%, 82.9%, 58.8%)
CIE-LABlab(38.89, -37.13, 39.36)
CIE-LCHlch(38.89, 54.11, 133.33°)
OKLaboklab(46.1% -0.1022 0.0876)
OKLCHoklch(46.1% 0.135 139.4)
XYZxyz(6.0356, 10.5974, 2.2996)
Luminance0.1060 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#286912 #531269
analogous
#546912 #286912 #126928
triadic
#286912 #122869 #691228
tetradic
#286912 #125469 #531269 #692812
square
#286912 #125469 #531269 #692812
split-complementary
#286912 #281269 #691254
monochromatic
#0A1A04 #143509 #286912 #3C9D1B #50D124

Accessibility & contrast

On white

6.73
#286912 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#286912 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #286912
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##286912#FFFFFF#000000##FFFFFF
##2869121.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F00
Deuteranopia (green-blind)
#645A1C
Tritanopia (blue-blind)
#206559
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #286912;
/* rgb */ color: rgb(40, 105, 18);
/* oklch */ color: oklch(46.1% 0.135 139.4);
Tailwind
colors: {
  custom: {
    50: '#6b9458',
    500: '#286912',
    950: '#000000',
  },
}
SCSS
$custom: #286912;
$custom-light: #6b9458;
$custom-dark: #000000;
JSON
{
  "hex": "#286912",
  "rgb": {
    "r": 40,
    "g": 105,
    "b": 18
  },
  "hsl": {
    "h": 104.828,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.46097,
    "c": 0.13463,
    "h": 139.4
  },
  "luminance": 0.10598
}

Semantic roles & 50–950 ramp

primary
#286912
secondary
#8636A1
accent
#3AEDC0
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #286912

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

Preview Lab → · Contrast checker → · Palette generator →

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