#6B157B#6B157B

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

Color values

HEX#6B157B
RGBrgb(107, 21, 123)
HSLhsl(291, 71%, 28%)
HSVhsv(291, 83%, 48%)
CMYKcmyk(13%, 82.9%, 0%, 51.8%)
CIE-LABlab(27.00, 49.97, -38.01)
CIE-LCHlch(27.00, 62.78, 322.74°)
OKLaboklab(39.29% 0.1298 -0.1067)
OKLCHoklch(39.29% 0.168 320.6)
XYZxyz(9.9063, 5.0927, 19.1963)
Luminance0.0509 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B157B #257B15
analogous
#38157B #6B157B #7B1558
triadic
#6B157B #7B6B15 #157B6B
tetradic
#6B157B #7B3815 #257B15 #15587B
square
#6B157B #7B3815 #257B15 #15587B
split-complementary
#6B157B #587B15 #157B38
monochromatic
#17041A #3E0C47 #6B157B #981EAF #C02FDB

Accessibility & contrast

On white

10.40
#6B157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B157B
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B157B#FFFFFF#000000##FFFFFF
##6B157B1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#214379
Tritanopia (blue-blind)
#6C2C49
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #6b157b;
/* rgb */ color: rgb(107, 21, 123);
/* oklch */ color: oklch(39.3% 0.168 320.6);
Tailwind
colors: {
  custom: {
    50: '#995fa2',
    500: '#6b157b',
    950: '#000000',
  },
}
SCSS
$custom: #6b157b;
$custom-light: #995fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#6b157b",
  "rgb": {
    "r": 107,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 290.588,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.39294,
    "c": 0.16804,
    "h": 320.6
  },
  "luminance": 0.05092
}

Semantic roles & 50–950 ramp

primary
#6B157B
secondary
#4EB03B
accent
#EE3A56
background
#F9F5FA
surface
#F2EAF3
border
#CCC6CD
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6B157B

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

Preview Lab → · Contrast checker → · Palette generator →

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