#12812D#12812D

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

Color values

HEX#12812D
RGBrgb(18, 129, 45)
HSLhsl(135, 76%, 29%)
HSVhsv(135, 86%, 51%)
CMYKcmyk(86%, 0%, 65.1%, 49.4%)
CIE-LABlab(47.00, -47.31, 36.42)
CIE-LCHlch(47.00, 59.70, 142.41°)
OKLaboklab(52.75% -0.1273 0.0851)
OKLCHoklch(52.75% 0.153 146.2)
XYZxyz(8.5727, 16.0175, 5.1220)
Luminance0.1602 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12812D #811266
analogous
#2F8112 #12812D #128165
triadic
#12812D #2D1281 #812D12
tetradic
#12812D #122F81 #811266 #816512
square
#12812D #122F81 #811266 #816512
split-complementary
#12812D #651281 #81122F
monochromatic
#041B09 #0B4B1A #12812D #19B740 #2CE258

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##12812D#FFFFFF#000000##FFFFFF
##12812D1.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)
#837423
Deuteranopia (green-blind)
#776C34
Tritanopia (blue-blind)
#007E6F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #12812d;
/* rgb */ color: rgb(18, 129, 45);
/* oklch */ color: oklch(52.7% 0.153 146.2);
Tailwind
colors: {
  custom: {
    50: '#68a769',
    500: '#12812d',
    950: '#000000',
  },
}
SCSS
$custom: #12812d;
$custom-light: #68a769;
$custom-dark: #000000;
JSON
{
  "hex": "#12812d",
  "rgb": {
    "r": 18,
    "g": 129,
    "b": 45
  },
  "hsl": {
    "h": 134.595,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52747,
    "c": 0.1531,
    "h": 146.2
  },
  "luminance": 0.16019
}

Semantic roles & 50–950 ramp

primary
#12812D
secondary
#B73898
accent
#36C4F2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #12812D

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

Preview Lab → · Contrast checker → · Palette generator →

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