#126240#126240

#126240 is a dark, moderate teal. Relative luminance 0.092; OKLCH L 44.1% C 0.093 H 159.5°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#126240
RGBrgb(18, 98, 64)
HSLhsl(155, 69%, 23%)
HSVhsv(155, 82%, 38%)
CMYKcmyk(81.6%, 0%, 34.7%, 61.6%)
CIE-LABlab(36.43, -32.11, 12.88)
CIE-LCHlch(36.43, 34.59, 158.14°)
OKLaboklab(44.09% -0.0872 0.0326)
OKLCHoklch(44.09% 0.093 159.5)
XYZxyz(5.5420, 9.2335, 6.3396)
Luminance0.0923 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126240 #621234
analogous
#126218 #126240 #125C62
triadic
#126240 #401262 #624012
tetradic
#126240 #181262 #621234 #5C6212
square
#126240 #181262 #621234 #5C6212
split-complementary
#126240 #62125C #621812
monochromatic
#051A11 #092E1E #126240 #1B9662 #25C984

Accessibility & contrast

On white

7.38
#126240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#126240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #126240
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126240#FFFFFF#000000##FFFFFF
##1262401.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615A3E
Deuteranopia (green-blind)
#575342
Tritanopia (blue-blind)
#006159
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #126240;
/* rgb */ color: rgb(18, 98, 64);
/* oklch */ color: oklch(44.1% 0.093 159.5);
Tailwind
colors: {
  custom: {
    50: '#5f8f75',
    500: '#126240',
    950: '#000000',
  },
}
SCSS
$custom: #126240;
$custom-light: #5f8f75;
$custom-dark: #000000;
JSON
{
  "hex": "#126240",
  "rgb": {
    "r": 18,
    "g": 98,
    "b": 64
  },
  "hsl": {
    "h": 154.5,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.4409,
    "c": 0.09305,
    "h": 159.5
  },
  "luminance": 0.09234
}

Semantic roles & 50–950 ramp

primary
#126240
secondary
#9A3660
accent
#3C87EC
background
#F5F8F7
surface
#EAF0ED
border
#C6CBC8
text
#050C08
muted
#797D7B

Preview Lab

Preview with #126240

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

Preview Lab → · Contrast checker → · Palette generator →

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