#12811C#12811C

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

Color values

HEX#12811C
RGBrgb(18, 129, 28)
HSLhsl(125, 76%, 29%)
HSVhsv(125, 86%, 51%)
CMYKcmyk(86%, 0%, 78.3%, 49.4%)
CIE-LABlab(46.86, -49.04, 43.41)
CIE-LCHlch(46.86, 65.49, 138.48°)
OKLaboklab(52.59% -0.1327 0.0977)
OKLCHoklch(52.59% 0.165 143.6)
XYZxyz(8.3087, 15.9119, 3.7318)
Luminance0.1591 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12811C #811277
analogous
#408112 #12811C #128154
triadic
#12811C #1C1281 #811C12
tetradic
#12811C #124081 #811277 #815412
square
#12811C #124081 #811277 #815412
split-complementary
#12811C #541281 #811240
monochromatic
#041B06 #0B4B10 #12811C #19B728 #2CE23C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##12811C#FFFFFF#000000##FFFFFF
##12811C1.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)
#847405
Deuteranopia (green-blind)
#786C27
Tritanopia (blue-blind)
#007D6E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

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

Semantic roles & 50–950 ramp

primary
#12811C
secondary
#B738AB
accent
#36E1F2
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#071005
muted
#7A7F79

Preview Lab

Preview with #12811C

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

Preview Lab → · Contrast checker → · Palette generator →

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