#12811B#12811B

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

Color values

HEX#12811B
RGBrgb(18, 129, 27)
HSLhsl(125, 76%, 29%)
HSVhsv(125, 86%, 51%)
CMYKcmyk(86%, 0%, 79.1%, 49.4%)
CIE-LABlab(46.85, -49.11, 43.76)
CIE-LCHlch(46.85, 65.78, 138.30°)
OKLaboklab(52.58% -0.1329 0.0983)
OKLCHoklch(52.58% 0.165 143.5)
XYZxyz(8.2970, 15.9072, 3.6698)
Luminance0.1591 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12811B #811278
analogous
#418112 #12811B #128153
triadic
#12811B #1B1281 #811B12
tetradic
#12811B #124181 #811278 #815312
square
#12811B #124181 #811278 #815312
split-complementary
#12811B #531281 #811241
monochromatic
#041B06 #0B4B10 #12811B #19B726 #2CE23B

Accessibility & contrast

On white

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

On black

4.18
#12811B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##12811B#FFFFFF#000000##FFFFFF
##12811B1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847403
Deuteranopia (green-blind)
#786C27
Tritanopia (blue-blind)
#007D6E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #12811b;
/* rgb */ color: rgb(18, 129, 27);
/* oklch */ color: oklch(52.6% 0.165 143.5);
Tailwind
colors: {
  custom: {
    50: '#69a760',
    500: '#12811b',
    950: '#000000',
  },
}
SCSS
$custom: #12811b;
$custom-light: #69a760;
$custom-dark: #000000;
JSON
{
  "hex": "#12811b",
  "rgb": {
    "r": 18,
    "g": 129,
    "b": 27
  },
  "hsl": {
    "h": 124.865,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.5258,
    "c": 0.16534,
    "h": 143.5
  },
  "luminance": 0.15908
}

Semantic roles & 50–950 ramp

primary
#12811B
secondary
#B738AC
accent
#36E3F2
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #12811B

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

Preview Lab → · Contrast checker → · Palette generator →

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