#12542C#12542C

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

Color values

HEX#12542C
RGBrgb(18, 84, 44)
HSLhsl(144, 65%, 20%)
HSVhsv(144, 79%, 33%)
CMYKcmyk(78.6%, 0%, 47.6%, 67.1%)
CIE-LABlab(31.00, -30.50, 17.67)
CIE-LCHlch(31.00, 35.25, 149.92°)
OKLaboklab(39.48% -0.0821 0.0436)
OKLCHoklch(39.48% 0.093 152)
XYZxyz(3.8741, 6.6507, 3.4619)
Luminance0.0665 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12542C #54123A
analogous
#195412 #12542C #12544D
triadic
#12542C #2C1254 #542C12
tetradic
#12542C #121954 #54123A #544D12
square
#12542C #121954 #54123A #544D12
split-complementary
#12542C #4D1254 #541219
monochromatic
#05190D #072212 #12542C #1D8646 #28B961

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##12542C#FFFFFF#000000##FFFFFF
##12542C1.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)
#544C29
Deuteranopia (green-blind)
#4C472F
Tritanopia (blue-blind)
#00534A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #12542c;
/* rgb */ color: rgb(18, 84, 44);
/* oklch */ color: oklch(39.5% 0.093 152.0);
Tailwind
colors: {
  custom: {
    50: '#5b8565',
    500: '#12542c',
    950: '#000000',
  },
}
SCSS
$custom: #12542c;
$custom-light: #5b8565;
$custom-dark: #000000;
JSON
{
  "hex": "#12542c",
  "rgb": {
    "r": 18,
    "g": 84,
    "b": 44
  },
  "hsl": {
    "h": 143.636,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.39481,
    "c": 0.09298,
    "h": 152
  },
  "luminance": 0.06651
}

Semantic roles & 50–950 ramp

primary
#12542C
secondary
#8D356A
accent
#40A6E8
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040B05
muted
#797C7A

Preview Lab

Preview with #12542C

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

Preview Lab → · Contrast checker → · Palette generator →

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