#6A157F#6A157F

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

Color values

HEX#6A157F
RGBrgb(106, 21, 127)
HSLhsl(288, 72%, 29%)
HSVhsv(288, 83%, 50%)
CMYKcmyk(16.5%, 83.5%, 0%, 50.2%)
CIE-LABlab(27.11, 50.55, -40.37)
CIE-LCHlch(27.11, 64.69, 321.39°)
OKLaboklab(39.43% 0.1279 -0.1136)
OKLCHoklch(39.43% 0.171 318.4)
XYZxyz(10.0423, 5.1333, 20.5364)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A157F #2A7F15
analogous
#35157F #6A157F #7F155F
triadic
#6A157F #7F6A15 #157F6A
tetradic
#6A157F #7F3515 #2A7F15 #155F7F
square
#6A157F #7F3515 #2A7F15 #155F7F
split-complementary
#6A157F #5F7F15 #157F35
monochromatic
#16041A #3E0C4A #6A157F #961EB4 #BB31DD

Accessibility & contrast

On white

10.36
#6A157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#6A157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A157F
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A157F#FFFFFF#000000##FFFFFF
##6A157F1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#1B437D
Tritanopia (blue-blind)
#692E4B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #6a157f;
/* rgb */ color: rgb(106, 21, 127);
/* oklch */ color: oklch(39.4% 0.171 318.4);
Tailwind
colors: {
  custom: {
    50: '#985fa5',
    500: '#6a157f',
    950: '#000000',
  },
}
SCSS
$custom: #6a157f;
$custom-light: #985fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#6a157f",
  "rgb": {
    "r": 106,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 288.113,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.39431,
    "c": 0.17111,
    "h": 318.4
  },
  "luminance": 0.05133
}

Semantic roles & 50–950 ramp

primary
#6A157F
secondary
#54B43C
accent
#EE395D
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6A157F

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

Preview Lab → · Contrast checker → · Palette generator →

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