#6A157E#6A157E

#6A157E is a dark, vivid purple. Relative luminance 0.051; OKLCH L 39.4% C 0.170 H 318.8°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#6A157E
RGBrgb(106, 21, 126)
HSLhsl(289, 71%, 29%)
HSVhsv(289, 83%, 49%)
CMYKcmyk(15.9%, 83.3%, 0%, 50.6%)
CIE-LABlab(27.04, 50.35, -39.85)
CIE-LCHlch(27.04, 64.22, 321.64°)
OKLaboklab(39.36% 0.1281 -0.1121)
OKLCHoklch(39.36% 0.17 318.8)
XYZxyz(9.9774, 5.1074, 20.1949)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A157E #297E15
analogous
#36157E #6A157E #7E155E
triadic
#6A157E #7E6A15 #157E6A
tetradic
#6A157E #7E3615 #297E15 #155E7E
square
#6A157E #7E3615 #297E15 #155E7E
split-complementary
#6A157E #5E7E15 #157E36
monochromatic
#16041A #3E0C4A #6A157E #961EB2 #BC31DD

Accessibility & contrast

On white

10.39
#6A157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#6A157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A157E
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A157E#FFFFFF#000000##FFFFFF
##6A157E1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#1C437C
Tritanopia (blue-blind)
#6A2D4A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #6a157e;
/* rgb */ color: rgb(106, 21, 126);
/* oklch */ color: oklch(39.4% 0.170 318.8);
Tailwind
colors: {
  custom: {
    50: '#985fa4',
    500: '#6a157e',
    950: '#000000',
  },
}
SCSS
$custom: #6a157e;
$custom-light: #985fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#6a157e",
  "rgb": {
    "r": 106,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 288.571,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.39357,
    "c": 0.17024,
    "h": 318.8
  },
  "luminance": 0.05107
}

Semantic roles & 50–950 ramp

primary
#6A157E
secondary
#52B33C
accent
#EE3A5C
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6A157E

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

Preview Lab → · Contrast checker → · Palette generator →

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