#12542E#12542E

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

Color values

HEX#12542E
RGBrgb(18, 84, 46)
HSLhsl(145, 65%, 20%)
HSVhsv(145, 79%, 33%)
CMYKcmyk(78.6%, 0%, 45.2%, 67.1%)
CIE-LABlab(31.03, -30.09, 16.52)
CIE-LCHlch(31.03, 34.33, 151.23°)
OKLaboklab(39.52% -0.0811 0.041)
OKLCHoklch(39.52% 0.091 153.2)
XYZxyz(3.9126, 6.6661, 3.6647)
Luminance0.0667 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12542E #541238
analogous
#175412 #12542E #12544F
triadic
#12542E #2E1254 #542E12
tetradic
#12542E #121754 #541238 #544F12
square
#12542E #121754 #541238 #544F12
split-complementary
#12542E #4F1254 #541217
monochromatic
#05190E #072212 #12542E #1D864A #28B965

Accessibility & contrast

On white

9.00
#12542E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12542E
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12542E#FFFFFF#000000##FFFFFF
##12542E1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544C2B
Deuteranopia (green-blind)
#4C4731
Tritanopia (blue-blind)
#00534B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #12542e;
/* rgb */ color: rgb(18, 84, 46);
/* oklch */ color: oklch(39.5% 0.091 153.2);
Tailwind
colors: {
  custom: {
    50: '#5b8567',
    500: '#12542e',
    950: '#000000',
  },
}
SCSS
$custom: #12542e;
$custom-light: #5b8567;
$custom-dark: #000000;
JSON
{
  "hex": "#12542e",
  "rgb": {
    "r": 18,
    "g": 84,
    "b": 46
  },
  "hsl": {
    "h": 145.455,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.39523,
    "c": 0.09085,
    "h": 153.2
  },
  "luminance": 0.06667
}

Semantic roles & 50–950 ramp

primary
#12542E
secondary
#8D3568
accent
#40A1E8
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040B06
muted
#797C7A

Preview Lab

Preview with #12542E

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

Preview Lab → · Contrast checker → · Palette generator →

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