#6A157A#6A157A

#6A157A is a dark, vivid purple. Relative luminance 0.050; OKLCH L 39.1% C 0.167 H 320.5°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#6A157A
RGBrgb(106, 21, 122)
HSLhsl(290, 71%, 28%)
HSVhsv(290, 83%, 48%)
CMYKcmyk(13.1%, 82.8%, 0%, 52.2%)
CIE-LABlab(26.75, 49.58, -37.78)
CIE-LCHlch(26.75, 62.33, 322.69°)
OKLaboklab(39.07% 0.1287 -0.106)
OKLCHoklch(39.07% 0.167 320.5)
XYZxyz(9.7245, 5.0062, 18.8627)
Luminance0.0501 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A157A #257A15
analogous
#37157A #6A157A #7A1557
triadic
#6A157A #7A6A15 #157A6A
tetradic
#6A157A #7A3715 #257A15 #15577A
square
#6A157A #7A3715 #257A15 #15577A
split-complementary
#6A157A #577A15 #157A37
monochromatic
#17041A #3D0C46 #6A157A #971EAE #C02EDB

Accessibility & contrast

On white

10.49
#6A157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#6A157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A157A
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A157A#FFFFFF#000000##FFFFFF
##6A157A1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#214278
Tritanopia (blue-blind)
#6B2B48
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #6a157a;
/* rgb */ color: rgb(106, 21, 122);
/* oklch */ color: oklch(39.1% 0.167 320.5);
Tailwind
colors: {
  custom: {
    50: '#985fa1',
    500: '#6a157a',
    950: '#000000',
  },
}
SCSS
$custom: #6a157a;
$custom-light: #985fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#6a157a",
  "rgb": {
    "r": 106,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 290.495,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.39065,
    "c": 0.16678,
    "h": 320.5
  },
  "luminance": 0.05006
}

Semantic roles & 50–950 ramp

primary
#6A157A
secondary
#4EAF3B
accent
#ED3A57
background
#F9F5FA
surface
#F2EAF3
border
#CCC6CD
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6A157A

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

Preview Lab → · Contrast checker → · Palette generator →

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