#6B168F#6B168F

#6B168F is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.9% C 0.185 H 312.6°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#6B168F
RGBrgb(107, 22, 143)
HSLhsl(282, 73%, 32%)
HSVhsv(282, 85%, 56%)
CMYKcmyk(25.2%, 84.6%, 0%, 43.9%)
CIE-LABlab(28.60, 53.68, -47.95)
CIE-LCHlch(28.60, 71.97, 318.23°)
OKLaboklab(40.89% 0.1251 -0.1359)
OKLCHoklch(40.89% 0.185 312.6)
XYZxyz(11.3073, 5.6831, 26.4826)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B168F #3A8F16
analogous
#2F168F #6B168F #8F1676
triadic
#6B168F #8F6B16 #168F6B
tetradic
#6B168F #8F2F16 #3A8F16 #16768F
square
#6B168F #8F2F16 #3A8F16 #16768F
split-complementary
#6B168F #768F16 #168F2F
monochromatic
#1C0625 #430E5A #6B168F #931EC4 #B13EE1

Accessibility & contrast

On white

9.83
#6B168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#6B168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B168F
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B168F#FFFFFF#000000##FFFFFF
##6B168F1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b168f;
/* rgb */ color: rgb(107, 22, 143);
/* oklch */ color: oklch(40.9% 0.185 312.6);
Tailwind
colors: {
  custom: {
    50: '#9a60b1',
    500: '#6b168f',
    950: '#000000',
  },
}
SCSS
$custom: #6b168f;
$custom-light: #9a60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#6b168f",
  "rgb": {
    "r": 107,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 282.149,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40889,
    "c": 0.18469,
    "h": 312.6
  },
  "luminance": 0.05683
}

Semantic roles & 50–950 ramp

primary
#6B168F
secondary
#66C13F
accent
#F0386F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0511
muted
#7E7A80

Preview Lab

Preview with #6B168F

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

Preview Lab → · Contrast checker → · Palette generator →

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