#12542D#12542D

#12542D is a dark, moderate green. Relative luminance 0.067; OKLCH L 39.5% C 0.092 H 152.6°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#12542D
RGBrgb(18, 84, 45)
HSLhsl(145, 65%, 20%)
HSVhsv(145, 79%, 33%)
CMYKcmyk(78.6%, 0%, 46.4%, 67.1%)
CIE-LABlab(31.02, -30.30, 17.10)
CIE-LCHlch(31.02, 34.79, 150.57°)
OKLaboklab(39.5% -0.0816 0.0423)
OKLCHoklch(39.5% 0.092 152.6)
XYZxyz(3.8931, 6.6583, 3.5621)
Luminance0.0666 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12542D #541239
analogous
#185412 #12542D #12544E
triadic
#12542D #2D1254 #542D12
tetradic
#12542D #121854 #541239 #544E12
square
#12542D #121854 #541239 #544E12
split-complementary
#12542D #4E1254 #541218
monochromatic
#05190D #072212 #12542D #1D8648 #28B963

Accessibility & contrast

On white

9.01
#12542D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#12542D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12542D
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12542D#FFFFFF#000000##FFFFFF
##12542D1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544C2A
Deuteranopia (green-blind)
#4C4730
Tritanopia (blue-blind)
#00534A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #12542d;
/* rgb */ color: rgb(18, 84, 45);
/* oklch */ color: oklch(39.5% 0.092 152.6);
Tailwind
colors: {
  custom: {
    50: '#5b8566',
    500: '#12542d',
    950: '#000000',
  },
}
SCSS
$custom: #12542d;
$custom-light: #5b8566;
$custom-dark: #000000;
JSON
{
  "hex": "#12542d",
  "rgb": {
    "r": 18,
    "g": 84,
    "b": 45
  },
  "hsl": {
    "h": 144.545,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.39501,
    "c": 0.09192,
    "h": 152.6
  },
  "luminance": 0.06659
}

Semantic roles & 50–950 ramp

primary
#12542D
secondary
#8D3569
accent
#40A3E8
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040B06
muted
#797C7A

Preview Lab

Preview with #12542D

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

Preview Lab → · Contrast checker → · Palette generator →

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