#12542B#12542B

#12542B is a dark, moderate green. Relative luminance 0.066; OKLCH L 39.5% C 0.094 H 151.5°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#12542B
RGBrgb(18, 84, 43)
HSLhsl(143, 65%, 20%)
HSVhsv(143, 79%, 33%)
CMYKcmyk(78.6%, 0%, 48.8%, 67.1%)
CIE-LABlab(30.98, -30.70, 18.24)
CIE-LCHlch(30.98, 35.72, 149.28°)
OKLaboklab(39.46% -0.0826 0.0449)
OKLCHoklch(39.46% 0.094 151.5)
XYZxyz(3.8555, 6.6432, 3.3641)
Luminance0.0664 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12542B #54123B
analogous
#1A5412 #12542B #12544C
triadic
#12542B #2B1254 #542B12
tetradic
#12542B #121A54 #54123B #544C12
square
#12542B #121A54 #54123B #544C12
split-complementary
#12542B #4C1254 #54121A
monochromatic
#05190D #072211 #12542B #1D8645 #28B95F

Accessibility & contrast

On white

9.02
#12542B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12542B
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12542B#FFFFFF#000000##FFFFFF
##12542B1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12542b;
/* rgb */ color: rgb(18, 84, 43);
/* oklch */ color: oklch(39.5% 0.094 151.5);
Tailwind
colors: {
  custom: {
    50: '#5b8565',
    500: '#12542b',
    950: '#000000',
  },
}
SCSS
$custom: #12542b;
$custom-light: #5b8565;
$custom-dark: #000000;
JSON
{
  "hex": "#12542b",
  "rgb": {
    "r": 18,
    "g": 84,
    "b": 43
  },
  "hsl": {
    "h": 142.727,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.39461,
    "c": 0.09404,
    "h": 151.5
  },
  "luminance": 0.06644
}

Semantic roles & 50–950 ramp

primary
#12542B
secondary
#8D356C
accent
#40A8E8
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040B05
muted
#797C7A

Preview Lab

Preview with #12542B

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

Preview Lab → · Contrast checker → · Palette generator →

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