#6B157E#6B157E

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

Color values

HEX#6B157E
RGBrgb(107, 21, 126)
HSLhsl(289, 71%, 29%)
HSVhsv(289, 83%, 49%)
CMYKcmyk(15.1%, 83.3%, 0%, 50.6%)
CIE-LABlab(27.21, 50.55, -39.57)
CIE-LCHlch(27.21, 64.19, 321.95°)
OKLaboklab(39.51% 0.1294 -0.1112)
OKLCHoklch(39.51% 0.171 319.3)
XYZxyz(10.0970, 5.1690, 20.2005)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B157E #287E15
analogous
#37157E #6B157E #7E155D
triadic
#6B157E #7E6B15 #157E6B
tetradic
#6B157E #7E3715 #287E15 #155D7E
square
#6B157E #7E3715 #287E15 #155D7E
split-complementary
#6B157E #5D7E15 #157E37
monochromatic
#16041A #3E0C4A #6B157E #981EB2 #BE31DD

Accessibility & contrast

On white

10.33
#6B157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B157E
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B157E#FFFFFF#000000##FFFFFF
##6B157E1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b157e;
/* rgb */ color: rgb(107, 21, 126);
/* oklch */ color: oklch(39.5% 0.171 319.3);
Tailwind
colors: {
  custom: {
    50: '#995fa4',
    500: '#6b157e',
    950: '#000000',
  },
}
SCSS
$custom: #6b157e;
$custom-light: #995fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#6b157e",
  "rgb": {
    "r": 107,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 289.143,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.39512,
    "c": 0.17063,
    "h": 319.3
  },
  "luminance": 0.05168
}

Semantic roles & 50–950 ramp

primary
#6B157E
secondary
#51B33C
accent
#EE3A5A
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6B157E

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

Preview Lab → · Contrast checker → · Palette generator →

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