#12811F#12811F

#12811F is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.6% C 0.163 H 144.0°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#12811F
RGBrgb(18, 129, 31)
HSLhsl(127, 76%, 29%)
HSVhsv(127, 86%, 51%)
CMYKcmyk(86%, 0%, 76%, 49.4%)
CIE-LABlab(46.88, -48.79, 42.31)
CIE-LCHlch(46.88, 64.58, 139.06°)
OKLaboklab(52.61% -0.1319 0.0959)
OKLCHoklch(52.61% 0.163 144)
XYZxyz(8.3465, 15.9270, 3.9304)
Luminance0.1593 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12811F #811274
analogous
#3D8112 #12811F #128157
triadic
#12811F #1F1281 #811F12
tetradic
#12811F #123D81 #811274 #815712
square
#12811F #123D81 #811274 #815712
split-complementary
#12811F #571281 #81123D
monochromatic
#041B06 #0B4B12 #12811F #19B72C #2CE241

Accessibility & contrast

On white

5.02
#12811F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#12811F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #12811F
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12811F#FFFFFF#000000##FFFFFF
##12811F1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84740C
Deuteranopia (green-blind)
#786C29
Tritanopia (blue-blind)
#007D6E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #12811f;
/* rgb */ color: rgb(18, 129, 31);
/* oklch */ color: oklch(52.6% 0.163 144.0);
Tailwind
colors: {
  custom: {
    50: '#68a761',
    500: '#12811f',
    950: '#000000',
  },
}
SCSS
$custom: #12811f;
$custom-light: #68a761;
$custom-dark: #000000;
JSON
{
  "hex": "#12811f",
  "rgb": {
    "r": 18,
    "g": 129,
    "b": 31
  },
  "hsl": {
    "h": 127.027,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.5261,
    "c": 0.16302,
    "h": 144
  },
  "luminance": 0.15928
}

Semantic roles & 50–950 ramp

primary
#12811F
secondary
#B738A8
accent
#36DCF2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#071005
muted
#7A7F7A

Preview Lab

Preview with #12811F

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

Preview Lab → · Contrast checker → · Palette generator →

#12811F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva