#286918#286918

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

Color values

HEX#286918
RGBrgb(40, 105, 24)
HSLhsl(108, 63%, 25%)
HSVhsv(108, 77%, 41%)
CMYKcmyk(61.9%, 0%, 77.1%, 58.8%)
CIE-LABlab(38.93, -36.69, 37.17)
CIE-LCHlch(38.93, 52.23, 134.62°)
OKLaboklab(46.14% -0.1006 0.084)
OKLCHoklch(46.14% 0.131 140.2)
XYZxyz(6.0912, 10.6197, 2.5928)
Luminance0.1062 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#286918 #591869
analogous
#506918 #286918 #186930
triadic
#286918 #182869 #691828
tetradic
#286918 #185069 #591869 #693018
square
#286918 #185069 #591869 #693018
split-complementary
#286918 #301869 #691850
monochromatic
#091906 #15370D #286918 #3B9B23 #4ECD2F

Accessibility & contrast

On white

6.72
#286918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #286918
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##286918#FFFFFF#000000##FFFFFF
##2869181.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #286918;
/* rgb */ color: rgb(40, 105, 24);
/* oklch */ color: oklch(46.1% 0.131 140.2);
Tailwind
colors: {
  custom: {
    50: '#6b945b',
    500: '#286918',
    950: '#000000',
  },
}
SCSS
$custom: #286918;
$custom-light: #6b945b;
$custom-dark: #000000;
JSON
{
  "hex": "#286918",
  "rgb": {
    "r": 40,
    "g": 105,
    "b": 24
  },
  "hsl": {
    "h": 108.148,
    "s": 62.791,
    "l": 25.294
  },
  "oklch": {
    "l": 0.46141,
    "c": 0.13108,
    "h": 140.2
  },
  "luminance": 0.1062
}

Semantic roles & 50–950 ramp

primary
#286918
secondary
#8C3E9F
accent
#42E6C5
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #286918

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

Preview Lab → · Contrast checker → · Palette generator →

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