#6B158D#6B158D

#6B158D is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.7% C 0.184 H 313.4°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#6B158D
RGBrgb(107, 21, 141)
HSLhsl(283, 74%, 32%)
HSVhsv(283, 85%, 55%)
CMYKcmyk(24.1%, 85.1%, 0%, 44.7%)
CIE-LABlab(28.34, 53.55, -47.13)
CIE-LCHlch(28.34, 71.33, 318.65°)
OKLaboklab(40.66% 0.1263 -0.1334)
OKLCHoklch(40.66% 0.184 313.4)
XYZxyz(11.1384, 5.5856, 25.6855)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B158D #378D15
analogous
#2F158D #6B158D #8D1573
triadic
#6B158D #8D6B15 #158D6B
tetradic
#6B158D #8D2F15 #378D15 #15738D
square
#6B158D #8D2F15 #378D15 #15738D
split-complementary
#6B158D #738D15 #158D2F
monochromatic
#1A0522 #430D58 #6B158D #931DC2 #B23BE2

Accessibility & contrast

On white

9.92
#6B158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#6B158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B158D
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B158D#FFFFFF#000000##FFFFFF
##6B158D1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00458B
Tritanopia (blue-blind)
#673453
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6b158d;
/* rgb */ color: rgb(107, 21, 141);
/* oklch */ color: oklch(40.7% 0.184 313.4);
Tailwind
colors: {
  custom: {
    50: '#9a60af',
    500: '#6b158d',
    950: '#000000',
  },
}
SCSS
$custom: #6b158d;
$custom-light: #9a60af;
$custom-dark: #000000;
JSON
{
  "hex": "#6b158d",
  "rgb": {
    "r": 107,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 283,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40661,
    "c": 0.18373,
    "h": 313.4
  },
  "luminance": 0.05585
}

Semantic roles & 50–950 ramp

primary
#6B158D
secondary
#62C13D
accent
#F1376C
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6B158D

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

Preview Lab → · Contrast checker → · Palette generator →

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