#6B157F#6B157F

#6B157F is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.6% C 0.171 H 318.9°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#6B157F
RGBrgb(107, 21, 127)
HSLhsl(289, 72%, 29%)
HSVhsv(289, 83%, 50%)
CMYKcmyk(15.7%, 83.5%, 0%, 50.2%)
CIE-LABlab(27.28, 50.74, -40.08)
CIE-LCHlch(27.28, 64.66, 321.70°)
OKLaboklab(39.59% 0.1292 -0.1127)
OKLCHoklch(39.59% 0.171 318.9)
XYZxyz(10.1618, 5.1949, 20.5420)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B157F #297F15
analogous
#36157F #6B157F #7F155E
triadic
#6B157F #7F6B15 #157F6B
tetradic
#6B157F #7F3615 #297F15 #155E7F
square
#6B157F #7F3615 #297F15 #155E7F
split-complementary
#6B157F #5E7F15 #157F36
monochromatic
#16041A #3F0C4A #6B157F #971EB4 #BD31DD

Accessibility & contrast

On white

10.30
#6B157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#6B157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B157F
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B157F#FFFFFF#000000##FFFFFF
##6B157F1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#1D437D
Tritanopia (blue-blind)
#6B2D4B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #6b157f;
/* rgb */ color: rgb(107, 21, 127);
/* oklch */ color: oklch(39.6% 0.171 318.9);
Tailwind
colors: {
  custom: {
    50: '#995fa5',
    500: '#6b157f',
    950: '#000000',
  },
}
SCSS
$custom: #6b157f;
$custom-light: #995fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#6b157f",
  "rgb": {
    "r": 107,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 288.679,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.39586,
    "c": 0.17149,
    "h": 318.9
  },
  "luminance": 0.05194
}

Semantic roles & 50–950 ramp

primary
#6B157F
secondary
#52B43C
accent
#EE395C
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6B157F

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

Preview Lab → · Contrast checker → · Palette generator →

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