#6A1158#6A1158

#6A1158 is a dark, vivid pink. Relative luminance 0.042; OKLCH L 36.6% C 0.143 H 338.1°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#6A1158
RGBrgb(106, 17, 88)
HSLhsl(312, 72%, 24%)
HSVhsv(312, 84%, 42%)
CMYKcmyk(0%, 84%, 17%, 58.4%)
CIE-LABlab(24.23, 44.87, -19.72)
CIE-LCHlch(24.23, 49.01, 336.28°)
OKLaboklab(36.59% 0.133 -0.0536)
OKLCHoklch(36.59% 0.143 338.1)
XYZxyz(7.9059, 4.1704, 9.6192)
Luminance0.0417 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1158 #116A23
analogous
#50116A #6A1158 #6A112C
triadic
#6A1158 #586A11 #11586A
tetradic
#6A1158 #6A5011 #116A23 #112C6A
square
#6A1158 #6A5011 #116A23 #112C6A
split-complementary
#6A1158 #2C6A11 #116A50
monochromatic
#1A0416 #35092C #6A1158 #9F1984 #D322B0

Accessibility & contrast

On white

11.45
#6A1158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#6A1158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1158
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1158#FFFFFF#000000##FFFFFF
##6A11581.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16315A
Deuteranopia (green-blind)
#353E56
Tritanopia (blue-blind)
#701734
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #6a1158;
/* rgb */ color: rgb(106, 17, 88);
/* oklch */ color: oklch(36.6% 0.143 338.1);
Tailwind
colors: {
  custom: {
    50: '#985b87',
    500: '#6a1158',
    950: '#000000',
  },
}
SCSS
$custom: #6a1158;
$custom-light: #985b87;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1158",
  "rgb": {
    "r": 106,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 312.135,
    "s": 72.358,
    "l": 24.118
  },
  "oklch": {
    "l": 0.36588,
    "c": 0.14341,
    "h": 338.1
  },
  "luminance": 0.0417
}

Semantic roles & 50–950 ramp

primary
#6A1158
secondary
#35A24B
accent
#EF5E39
background
#F9F5F8
surface
#F2E9EF
border
#CCC5CA
text
#0E040B
muted
#7E797C

Preview Lab

Preview with #6A1158

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

Preview Lab → · Contrast checker → · Palette generator →

#6A1158 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva