#6B168D#6B168D

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

Color values

HEX#6B168D
RGBrgb(107, 22, 141)
HSLhsl(283, 73%, 32%)
HSVhsv(283, 84%, 55%)
CMYKcmyk(24.1%, 84.4%, 0%, 44.7%)
CIE-LABlab(28.44, 53.26, -46.97)
CIE-LCHlch(28.44, 71.01, 318.59°)
OKLaboklab(40.73% 0.1256 -0.133)
OKLCHoklch(40.73% 0.183 313.4)
XYZxyz(11.1572, 5.6231, 25.6918)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B168D #388D16
analogous
#30168D #6B168D #8D1674
triadic
#6B168D #8D6B16 #168D6B
tetradic
#6B168D #8D3016 #388D16 #16748D
square
#6B168D #8D3016 #388D16 #16748D
split-complementary
#6B168D #748D16 #168D30
monochromatic
#1B0523 #430E58 #6B168D #931EC2 #B23DE1

Accessibility & contrast

On white

9.88
#6B168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B168D
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B168D#FFFFFF#000000##FFFFFF
##6B168D1.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b168d;
/* rgb */ color: rgb(107, 22, 141);
/* oklch */ color: oklch(40.7% 0.183 313.4);
Tailwind
colors: {
  custom: {
    50: '#9a60af',
    500: '#6b168d',
    950: '#000000',
  },
}
SCSS
$custom: #6b168d;
$custom-light: #9a60af;
$custom-dark: #000000;
JSON
{
  "hex": "#6b168d",
  "rgb": {
    "r": 107,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 282.857,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.4073,
    "c": 0.18291,
    "h": 313.4
  },
  "luminance": 0.05623
}

Semantic roles & 50–950 ramp

primary
#6B168D
secondary
#63C13E
accent
#F0386D
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6B168D

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

Preview Lab → · Contrast checker → · Palette generator →

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