#12812A#12812A

#12812A is a mid, vivid green. Relative luminance 0.160; OKLCH L 52.7% C 0.155 H 145.7°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#12812A
RGBrgb(18, 129, 42)
HSLhsl(133, 76%, 29%)
HSVhsv(133, 86%, 51%)
CMYKcmyk(86%, 0%, 67.4%, 49.4%)
CIE-LABlab(46.97, -47.67, 37.77)
CIE-LCHlch(46.97, 60.82, 141.61°)
OKLaboklab(52.71% -0.1283 0.0877)
OKLCHoklch(52.71% 0.155 145.7)
XYZxyz(8.5170, 15.9952, 4.8285)
Luminance0.1600 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12812A #811269
analogous
#328112 #12812A #128162
triadic
#12812A #2A1281 #812A12
tetradic
#12812A #123281 #811269 #816212
square
#12812A #123281 #811269 #816212
split-complementary
#12812A #621281 #811232
monochromatic
#041B09 #0B4B19 #12812A #19B73B #2CE253

Accessibility & contrast

On white

5.00
#12812A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#12812A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #12812A
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12812A#FFFFFF#000000##FFFFFF
##12812A1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83741F
Deuteranopia (green-blind)
#776C32
Tritanopia (blue-blind)
#007E6F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #12812a;
/* rgb */ color: rgb(18, 129, 42);
/* oklch */ color: oklch(52.7% 0.155 145.7);
Tailwind
colors: {
  custom: {
    50: '#68a768',
    500: '#12812a',
    950: '#000000',
  },
}
SCSS
$custom: #12812a;
$custom-light: #68a768;
$custom-dark: #000000;
JSON
{
  "hex": "#12812a",
  "rgb": {
    "r": 18,
    "g": 129,
    "b": 42
  },
  "hsl": {
    "h": 132.973,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52713,
    "c": 0.15545,
    "h": 145.7
  },
  "luminance": 0.15996
}

Semantic roles & 50–950 ramp

primary
#12812A
secondary
#B7389B
accent
#36C9F2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #12812A

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

Preview Lab → · Contrast checker → · Palette generator →

#12812A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva