#12512A#12512A

#12512A is a dark, moderate green. Relative luminance 0.062; OKLCH L 38.5% C 0.091 H 151.7°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#12512A
RGBrgb(18, 81, 42)
HSLhsl(143, 64%, 19%)
HSVhsv(143, 78%, 32%)
CMYKcmyk(77.8%, 0%, 48.1%, 68.2%)
CIE-LABlab(29.86, -29.62, 17.40)
CIE-LCHlch(29.86, 34.35, 149.57°)
OKLaboklab(38.53% -0.0798 0.0429)
OKLCHoklch(38.53% 0.091 151.7)
XYZxyz(3.6095, 6.1802, 3.1927)
Luminance0.0618 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12512A #511239
analogous
#1A5112 #12512A #12514A
triadic
#12512A #2A1251 #512A12
tetradic
#12512A #121A51 #511239 #514A12
square
#12512A #121A51 #511239 #514A12
split-complementary
#12512A #4A1251 #51121A
monochromatic
#06190D #071F10 #12512A #1D8344 #28B55E

Accessibility & contrast

On white

9.39
#12512A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#12512A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12512A
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12512A#FFFFFF#000000##FFFFFF
##12512A1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514A27
Deuteranopia (green-blind)
#4A442D
Tritanopia (blue-blind)
#005048
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #12512a;
/* rgb */ color: rgb(18, 81, 42);
/* oklch */ color: oklch(38.5% 0.091 151.7);
Tailwind
colors: {
  custom: {
    50: '#5a8264',
    500: '#12512a',
    950: '#000000',
  },
}
SCSS
$custom: #12512a;
$custom-light: #5a8264;
$custom-dark: #000000;
JSON
{
  "hex": "#12512a",
  "rgb": {
    "r": 18,
    "g": 81,
    "b": 42
  },
  "hsl": {
    "h": 142.857,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.38532,
    "c": 0.09056,
    "h": 151.7
  },
  "luminance": 0.06181
}

Semantic roles & 50–950 ramp

primary
#12512A
secondary
#8A356A
accent
#41A8E7
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040A05
muted
#797C7A

Preview Lab

Preview with #12512A

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

Preview Lab → · Contrast checker → · Palette generator →

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