#12512E#12512E

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

Color values

HEX#12512E
RGBrgb(18, 81, 46)
HSLhsl(147, 64%, 19%)
HSVhsv(147, 78%, 32%)
CMYKcmyk(77.8%, 0%, 43.2%, 68.2%)
CIE-LABlab(29.94, -28.78, 15.08)
CIE-LCHlch(29.94, 32.49, 152.35°)
OKLaboklab(38.62% -0.0777 0.0376)
OKLCHoklch(38.62% 0.086 154.2)
XYZxyz(3.6847, 6.2103, 3.5888)
Luminance0.0621 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12512E #511235
analogous
#165112 #12512E #12514E
triadic
#12512E #2E1251 #512E12
tetradic
#12512E #121651 #511235 #514E12
square
#12512E #121651 #511235 #514E12
split-complementary
#12512E #4E1251 #511216
monochromatic
#06190E #071F12 #12512E #1D834A #28B567

Accessibility & contrast

On white

9.37
#12512E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12512E
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12512E#FFFFFF#000000##FFFFFF
##12512E1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514A2C
Deuteranopia (green-blind)
#494430
Tritanopia (blue-blind)
#005048
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #12512e;
/* rgb */ color: rgb(18, 81, 46);
/* oklch */ color: oklch(38.6% 0.086 154.2);
Tailwind
colors: {
  custom: {
    50: '#5a8267',
    500: '#12512e',
    950: '#000000',
  },
}
SCSS
$custom: #12512e;
$custom-light: #5a8267;
$custom-dark: #000000;
JSON
{
  "hex": "#12512e",
  "rgb": {
    "r": 18,
    "g": 81,
    "b": 46
  },
  "hsl": {
    "h": 146.667,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.38618,
    "c": 0.08628,
    "h": 154.2
  },
  "luminance": 0.06211
}

Semantic roles & 50–950 ramp

primary
#12512E
secondary
#8A3564
accent
#419DE7
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040A06
muted
#797C7A

Preview Lab

Preview with #12512E

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

Preview Lab → · Contrast checker → · Palette generator →

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