#6A157C#6A157C

#6A157C is a dark, vivid purple. Relative luminance 0.051; OKLCH L 39.2% C 0.169 H 319.7°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#6A157C
RGBrgb(106, 21, 124)
HSLhsl(290, 71%, 28%)
HSVhsv(290, 83%, 49%)
CMYKcmyk(14.5%, 83.1%, 0%, 51.4%)
CIE-LABlab(26.89, 49.96, -38.82)
CIE-LCHlch(26.89, 63.27, 322.15°)
OKLaboklab(39.21% 0.1284 -0.1091)
OKLCHoklch(39.21% 0.169 319.7)
XYZxyz(9.8496, 5.0562, 19.5220)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A157C #277C15
analogous
#37157C #6A157C #7C155A
triadic
#6A157C #7C6A15 #157C6A
tetradic
#6A157C #7C3715 #277C15 #155A7C
square
#6A157C #7C3715 #277C15 #155A7C
split-complementary
#6A157C #5A7C15 #157C37
monochromatic
#16041A #3D0C48 #6A157C #971EB0 #BE30DC

Accessibility & contrast

On white

10.44
#6A157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#6A157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A157C
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A157C#FFFFFF#000000##FFFFFF
##6A157C1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#1F427A
Tritanopia (blue-blind)
#6A2C49
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #6a157c;
/* rgb */ color: rgb(106, 21, 124);
/* oklch */ color: oklch(39.2% 0.169 319.7);
Tailwind
colors: {
  custom: {
    50: '#985fa2',
    500: '#6a157c',
    950: '#000000',
  },
}
SCSS
$custom: #6a157c;
$custom-light: #985fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#6a157c",
  "rgb": {
    "r": 106,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 289.515,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3921,
    "c": 0.1685,
    "h": 319.7
  },
  "luminance": 0.05056
}

Semantic roles & 50–950 ramp

primary
#6A157C
secondary
#50B13C
accent
#EE3A59
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6A157C

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

Preview Lab → · Contrast checker → · Palette generator →

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