#6A157D#6A157D

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

Color values

HEX#6A157D
RGBrgb(106, 21, 125)
HSLhsl(289, 71%, 29%)
HSVhsv(289, 83%, 49%)
CMYKcmyk(15.2%, 83.2%, 0%, 51%)
CIE-LABlab(26.97, 50.16, -39.34)
CIE-LCHlch(26.97, 63.74, 321.89°)
OKLaboklab(39.28% 0.1283 -0.1106)
OKLCHoklch(39.28% 0.169 319.2)
XYZxyz(9.9132, 5.0817, 19.8568)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A157D #287D15
analogous
#36157D #6A157D #7D155C
triadic
#6A157D #7D6A15 #157D6A
tetradic
#6A157D #7D3615 #287D15 #155C7D
square
#6A157D #7D3615 #287D15 #155C7D
split-complementary
#6A157D #5C7D15 #157D36
monochromatic
#16041A #3E0C49 #6A157D #961EB1 #BD30DC

Accessibility & contrast

On white

10.42
#6A157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A157D
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A157D#FFFFFF#000000##FFFFFF
##6A157D1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a157d;
/* rgb */ color: rgb(106, 21, 125);
/* oklch */ color: oklch(39.3% 0.169 319.2);
Tailwind
colors: {
  custom: {
    50: '#985fa3',
    500: '#6a157d',
    950: '#000000',
  },
}
SCSS
$custom: #6a157d;
$custom-light: #985fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#6a157d",
  "rgb": {
    "r": 106,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 289.038,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.39283,
    "c": 0.16938,
    "h": 319.2
  },
  "luminance": 0.05081
}

Semantic roles & 50–950 ramp

primary
#6A157D
secondary
#51B23C
accent
#EE3A5B
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6A157D

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

Preview Lab → · Contrast checker → · Palette generator →

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