#12512C#12512C

#12512C is a dark, moderate green. Relative luminance 0.062; OKLCH L 38.6% C 0.088 H 152.9°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#12512C
RGBrgb(18, 81, 44)
HSLhsl(145, 64%, 19%)
HSVhsv(145, 78%, 32%)
CMYKcmyk(77.8%, 0%, 45.7%, 68.2%)
CIE-LABlab(29.90, -29.21, 16.24)
CIE-LCHlch(29.90, 33.42, 150.92°)
OKLaboklab(38.57% -0.0787 0.0403)
OKLCHoklch(38.57% 0.088 152.9)
XYZxyz(3.6462, 6.1949, 3.3860)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12512C #511237
analogous
#185112 #12512C #12514C
triadic
#12512C #2C1251 #512C12
tetradic
#12512C #121851 #511237 #514C12
square
#12512C #121851 #511237 #514C12
split-complementary
#12512C #4C1251 #511218
monochromatic
#06190E #071F11 #12512C #1D8347 #28B562

Accessibility & contrast

On white

9.38
#12512C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12512C
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12512C#FFFFFF#000000##FFFFFF
##12512C1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514A29
Deuteranopia (green-blind)
#49442E
Tritanopia (blue-blind)
#005048
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #12512c;
/* rgb */ color: rgb(18, 81, 44);
/* oklch */ color: oklch(38.6% 0.088 152.9);
Tailwind
colors: {
  custom: {
    50: '#5a8265',
    500: '#12512c',
    950: '#000000',
  },
}
SCSS
$custom: #12512c;
$custom-light: #5a8265;
$custom-dark: #000000;
JSON
{
  "hex": "#12512c",
  "rgb": {
    "r": 18,
    "g": 81,
    "b": 44
  },
  "hsl": {
    "h": 144.762,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.38574,
    "c": 0.08842,
    "h": 152.9
  },
  "luminance": 0.06195
}

Semantic roles & 50–950 ramp

primary
#12512C
secondary
#8A3567
accent
#41A2E7
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040A05
muted
#797C7A

Preview Lab

Preview with #12512C

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

Preview Lab → · Contrast checker → · Palette generator →

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