#286F12#286F12

#286F12 is a mid, vivid green. Relative luminance 0.119; OKLCH L 47.8% C 0.142 H 139.8°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#286F12
RGBrgb(40, 111, 18)
HSLhsl(106, 72%, 25%)
HSVhsv(106, 84%, 44%)
CMYKcmyk(64%, 0%, 83.8%, 56.5%)
CIE-LABlab(41.00, -39.46, 41.35)
CIE-LCHlch(41.00, 57.15, 133.66°)
OKLaboklab(47.84% -0.1085 0.0918)
OKLCHoklch(47.84% 0.142 139.8)
XYZxyz(6.6684, 11.8630, 2.5105)
Luminance0.1186 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#286F12 #59126F
analogous
#576F12 #286F12 #126F2A
triadic
#286F12 #12286F #6F1228
tetradic
#286F12 #12576F #59126F #6F2A12
square
#286F12 #12576F #59126F #6F2A12
split-complementary
#286F12 #2A126F #6F1257
monochromatic
#091A04 #153A09 #286F12 #3BA41B #4ED823

Accessibility & contrast

On white

6.23
#286F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#286F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #286F12
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##286F12#FFFFFF#000000##FFFFFF
##286F121.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726400
Deuteranopia (green-blind)
#6A5E1D
Tritanopia (blue-blind)
#1F6B5E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #286f12;
/* rgb */ color: rgb(40, 111, 18);
/* oklch */ color: oklch(47.8% 0.142 139.8);
Tailwind
colors: {
  custom: {
    50: '#6c9959',
    500: '#286f12',
    950: '#000000',
  },
}
SCSS
$custom: #286f12;
$custom-light: #6c9959;
$custom-dark: #000000;
JSON
{
  "hex": "#286f12",
  "rgb": {
    "r": 40,
    "g": 111,
    "b": 18
  },
  "hsl": {
    "h": 105.806,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.47837,
    "c": 0.14208,
    "h": 139.8
  },
  "luminance": 0.11864
}

Semantic roles & 50–950 ramp

primary
#286F12
secondary
#8C37A6
accent
#39EFC4
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #286F12

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

Preview Lab → · Contrast checker → · Palette generator →

#286F12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva