#6B157D#6B157D

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

Color values

HEX#6B157D
RGBrgb(107, 21, 125)
HSLhsl(290, 71%, 29%)
HSVhsv(290, 83%, 49%)
CMYKcmyk(14.4%, 83.2%, 0%, 51%)
CIE-LABlab(27.14, 50.36, -39.05)
CIE-LCHlch(27.14, 63.72, 322.21°)
OKLaboklab(39.44% 0.1295 -0.1097)
OKLCHoklch(39.44% 0.17 319.7)
XYZxyz(10.0328, 5.1433, 19.8624)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B157D #277D15
analogous
#37157D #6B157D #7D155B
triadic
#6B157D #7D6B15 #157D6B
tetradic
#6B157D #7D3715 #277D15 #155B7D
square
#6B157D #7D3715 #277D15 #155B7D
split-complementary
#6B157D #5B7D15 #157D37
monochromatic
#16041A #3E0C49 #6B157D #981EB1 #BE30DC

Accessibility & contrast

On white

10.35
#6B157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B157D
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B157D#FFFFFF#000000##FFFFFF
##6B157D1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#1F437B
Tritanopia (blue-blind)
#6B2D4A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #6b157d;
/* rgb */ color: rgb(107, 21, 125);
/* oklch */ color: oklch(39.4% 0.170 319.7);
Tailwind
colors: {
  custom: {
    50: '#995fa3',
    500: '#6b157d',
    950: '#000000',
  },
}
SCSS
$custom: #6b157d;
$custom-light: #995fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#6b157d",
  "rgb": {
    "r": 107,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 289.615,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.39439,
    "c": 0.16976,
    "h": 319.7
  },
  "luminance": 0.05143
}

Semantic roles & 50–950 ramp

primary
#6B157D
secondary
#50B23C
accent
#EE3A59
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6B157D

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

Preview Lab → · Contrast checker → · Palette generator →

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