#6A157B#6A157B

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

Color values

HEX#6A157B
RGBrgb(106, 21, 123)
HSLhsl(290, 71%, 28%)
HSVhsv(290, 83%, 48%)
CMYKcmyk(13.8%, 82.9%, 0%, 51.8%)
CIE-LABlab(26.82, 49.77, -38.30)
CIE-LCHlch(26.82, 62.80, 322.42°)
OKLaboklab(39.14% 0.1286 -0.1076)
OKLCHoklch(39.14% 0.168 320.1)
XYZxyz(9.7867, 5.0311, 19.1906)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A157B #267B15
analogous
#37157B #6A157B #7B1559
triadic
#6A157B #7B6A15 #157B6A
tetradic
#6A157B #7B3715 #267B15 #15597B
square
#6A157B #7B3715 #267B15 #15597B
split-complementary
#6A157B #597B15 #157B37
monochromatic
#17041A #3D0C47 #6A157B #971EAF #BF2FDB

Accessibility & contrast

On white

10.47
#6A157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A157B
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A157B#FFFFFF#000000##FFFFFF
##6A157B1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#204279
Tritanopia (blue-blind)
#6A2C49
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #6a157b;
/* rgb */ color: rgb(106, 21, 123);
/* oklch */ color: oklch(39.1% 0.168 320.1);
Tailwind
colors: {
  custom: {
    50: '#985fa2',
    500: '#6a157b',
    950: '#000000',
  },
}
SCSS
$custom: #6a157b;
$custom-light: #985fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#6a157b",
  "rgb": {
    "r": 106,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 290,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.39137,
    "c": 0.16764,
    "h": 320.1
  },
  "luminance": 0.05031
}

Semantic roles & 50–950 ramp

primary
#6A157B
secondary
#4FB03B
accent
#EE3A58
background
#F9F5FA
surface
#F2EAF3
border
#CCC6CD
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6A157B

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

Preview Lab → · Contrast checker → · Palette generator →

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