#12542A#12542A

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

Color values

HEX#12542A
RGBrgb(18, 84, 42)
HSLhsl(142, 65%, 20%)
HSVhsv(142, 79%, 33%)
CMYKcmyk(78.6%, 0%, 50%, 67.1%)
CIE-LABlab(30.96, -30.90, 18.81)
CIE-LCHlch(30.96, 36.18, 148.67°)
OKLaboklab(39.44% -0.0832 0.0461)
OKLCHoklch(39.44% 0.095 151)
XYZxyz(3.8374, 6.6360, 3.2687)
Luminance0.0664 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12542A #54123C
analogous
#1B5412 #12542A #12544B
triadic
#12542A #2A1254 #542A12
tetradic
#12542A #121B54 #54123C #544B12
square
#12542A #121B54 #54123C #544B12
split-complementary
#12542A #4B1254 #54121B
monochromatic
#05190D #072211 #12542A #1D8643 #28B95C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #12542a;
/* rgb */ color: rgb(18, 84, 42);
/* oklch */ color: oklch(39.4% 0.095 151.0);
Tailwind
colors: {
  custom: {
    50: '#5b8564',
    500: '#12542a',
    950: '#000000',
  },
}
SCSS
$custom: #12542a;
$custom-light: #5b8564;
$custom-dark: #000000;
JSON
{
  "hex": "#12542a",
  "rgb": {
    "r": 18,
    "g": 84,
    "b": 42
  },
  "hsl": {
    "h": 141.818,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.39441,
    "c": 0.0951,
    "h": 151
  },
  "luminance": 0.06636
}

Semantic roles & 50–950 ramp

primary
#12542A
secondary
#8D356D
accent
#40ABE8
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040B05
muted
#797C7A

Preview Lab

Preview with #12542A

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

Preview Lab → · Contrast checker → · Palette generator →

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