#6B158F#6B158F

#6B158F is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.8% C 0.185 H 312.7°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#6B158F
RGBrgb(107, 21, 143)
HSLhsl(282, 74%, 32%)
HSVhsv(282, 85%, 56%)
CMYKcmyk(25.2%, 85.3%, 0%, 43.9%)
CIE-LABlab(28.50, 53.96, -48.11)
CIE-LCHlch(28.50, 72.29, 318.28°)
OKLaboklab(40.82% 0.1258 -0.1363)
OKLCHoklch(40.82% 0.186 312.7)
XYZxyz(11.2886, 5.6456, 26.4763)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B158F #398F15
analogous
#2E158F #6B158F #8F1576
triadic
#6B158F #8F6B15 #158F6B
tetradic
#6B158F #8F2E15 #398F15 #15768F
square
#6B158F #8F2E15 #398F15 #15768F
split-complementary
#6B158F #768F15 #158F2E
monochromatic
#1B0524 #430D5A #6B158F #931DC4 #B13CE2

Accessibility & contrast

On white

9.86
#6B158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#6B158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B158F
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B158F#FFFFFF#000000##FFFFFF
##6B158F1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00458D
Tritanopia (blue-blind)
#673554
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6b158f;
/* rgb */ color: rgb(107, 21, 143);
/* oklch */ color: oklch(40.8% 0.185 312.7);
Tailwind
colors: {
  custom: {
    50: '#9a60b1',
    500: '#6b158f',
    950: '#000000',
  },
}
SCSS
$custom: #6b158f;
$custom-light: #9a60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#6b158f",
  "rgb": {
    "r": 107,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 282.295,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40821,
    "c": 0.1855,
    "h": 312.7
  },
  "luminance": 0.05645
}

Semantic roles & 50–950 ramp

primary
#6B158F
secondary
#65C23E
accent
#F1376E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0511
muted
#7E7A80

Preview Lab

Preview with #6B158F

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

Preview Lab → · Contrast checker → · Palette generator →

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