#12812F#12812F

#12812F is a mid, vivid green. Relative luminance 0.160; OKLCH L 52.8% C 0.151 H 146.6°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#12812F
RGBrgb(18, 129, 47)
HSLhsl(136, 76%, 29%)
HSVhsv(136, 86%, 51%)
CMYKcmyk(86%, 0%, 63.6%, 49.4%)
CIE-LABlab(47.02, -47.06, 35.49)
CIE-LCHlch(47.02, 58.94, 142.97°)
OKLaboklab(52.77% -0.1265 0.0833)
OKLCHoklch(52.77% 0.151 146.6)
XYZxyz(8.6121, 16.0333, 5.3296)
Luminance0.1603 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12812F #811264
analogous
#2D8112 #12812F #128167
triadic
#12812F #2F1281 #812F12
tetradic
#12812F #122D81 #811264 #816712
square
#12812F #122D81 #811264 #816712
split-complementary
#12812F #671281 #81122D
monochromatic
#041B0A #0B4B1B #12812F #19B743 #2CE25B

Accessibility & contrast

On white

4.99
#12812F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#12812F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #12812F
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12812F#FFFFFF#000000##FFFFFF
##12812F1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837426
Deuteranopia (green-blind)
#776C36
Tritanopia (blue-blind)
#007E6F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #12812f;
/* rgb */ color: rgb(18, 129, 47);
/* oklch */ color: oklch(52.8% 0.151 146.6);
Tailwind
colors: {
  custom: {
    50: '#68a76b',
    500: '#12812f',
    950: '#000000',
  },
}
SCSS
$custom: #12812f;
$custom-light: #68a76b;
$custom-dark: #000000;
JSON
{
  "hex": "#12812f",
  "rgb": {
    "r": 18,
    "g": 129,
    "b": 47
  },
  "hsl": {
    "h": 135.676,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52771,
    "c": 0.15148,
    "h": 146.6
  },
  "luminance": 0.16034
}

Semantic roles & 50–950 ramp

primary
#12812F
secondary
#B73896
accent
#36C1F2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #12812F

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

Preview Lab → · Contrast checker → · Palette generator →

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