#126542#126542

#126542 is a mid, moderate teal. Relative luminance 0.098; OKLCH L 45.0% C 0.095 H 159.6°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#126542
RGBrgb(18, 101, 66)
HSLhsl(155, 70%, 23%)
HSVhsv(155, 82%, 40%)
CMYKcmyk(82.2%, 0%, 34.7%, 60.4%)
CIE-LABlab(37.53, -32.93, 13.18)
CIE-LCHlch(37.53, 35.47, 158.18°)
OKLaboklab(45.01% -0.0894 0.0333)
OKLCHoklch(45.01% 0.095 159.6)
XYZxyz(5.8859, 9.8286, 6.7401)
Luminance0.0983 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126542 #651235
analogous
#126518 #126542 #125E65
triadic
#126542 #421265 #654212
tetradic
#126542 #181265 #651235 #5E6512
square
#126542 #181265 #651235 #5E6512
split-complementary
#126542 #65125E #651812
monochromatic
#051A11 #093120 #126542 #1B9964 #25CD86

Accessibility & contrast

On white

7.08
#126542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#126542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #126542
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126542#FFFFFF#000000##FFFFFF
##1265421.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#645D40
Deuteranopia (green-blind)
#5A5544
Tritanopia (blue-blind)
#00645C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #126542;
/* rgb */ color: rgb(18, 101, 66);
/* oklch */ color: oklch(45.0% 0.095 159.6);
Tailwind
colors: {
  custom: {
    50: '#5f9276',
    500: '#126542',
    950: '#000000',
  },
}
SCSS
$custom: #126542;
$custom-light: #5f9276;
$custom-dark: #000000;
JSON
{
  "hex": "#126542",
  "rgb": {
    "r": 18,
    "g": 101,
    "b": 66
  },
  "hsl": {
    "h": 154.699,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.45013,
    "c": 0.0954,
    "h": 159.6
  },
  "luminance": 0.09829
}

Semantic roles & 50–950 ramp

primary
#126542
secondary
#9D3661
accent
#3B86ED
background
#F6F9F7
surface
#EBF1ED
border
#C6CBC8
text
#050D08
muted
#7A7E7B

Preview Lab

Preview with #126542

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

Preview Lab → · Contrast checker → · Palette generator →

#126542 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva