#286718#286718

#286718 is a mid, vivid green. Relative luminance 0.102; OKLCH L 45.6% C 0.128 H 140.0°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#286718
RGBrgb(40, 103, 24)
HSLhsl(108, 62%, 25%)
HSVhsv(108, 77%, 40%)
CMYKcmyk(61.2%, 0%, 76.7%, 59.6%)
CIE-LABlab(38.23, -35.89, 36.46)
CIE-LCHlch(38.23, 51.16, 134.55°)
OKLaboklab(45.56% -0.0985 0.0825)
OKLCHoklch(45.56% 0.128 140)
XYZxyz(5.8899, 10.2170, 2.5257)
Luminance0.1022 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#286718 #571867
analogous
#506718 #286718 #18672F
triadic
#286718 #182867 #671828
tetradic
#286718 #185067 #571867 #672F18
square
#286718 #185067 #571867 #672F18
split-complementary
#286718 #2F1867 #671850
monochromatic
#0A1906 #15350C #286718 #3B9924 #4FCA2F

Accessibility & contrast

On white

6.90
#286718 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#286718 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #286718
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##286718#FFFFFF#000000##FFFFFF
##2867181.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D0A
Deuteranopia (green-blind)
#625820
Tritanopia (blue-blind)
#206358
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #286718;
/* rgb */ color: rgb(40, 103, 24);
/* oklch */ color: oklch(45.6% 0.128 140.0);
Tailwind
colors: {
  custom: {
    50: '#6a935a',
    500: '#286718',
    950: '#000000',
  },
}
SCSS
$custom: #286718;
$custom-light: #6a935a;
$custom-dark: #000000;
JSON
{
  "hex": "#286718",
  "rgb": {
    "r": 40,
    "g": 103,
    "b": 24
  },
  "hsl": {
    "h": 107.848,
    "s": 62.205,
    "l": 24.902
  },
  "oklch": {
    "l": 0.45561,
    "c": 0.12846,
    "h": 140
  },
  "luminance": 0.10218
}

Semantic roles & 50–950 ramp

primary
#286718
secondary
#8A3E9D
accent
#43E5C4
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #286718

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

Preview Lab → · Contrast checker → · Palette generator →

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