#6B168E#6B168E

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

Color values

HEX#6B168E
RGBrgb(107, 22, 142)
HSLhsl(283, 73%, 32%)
HSVhsv(283, 85%, 56%)
CMYKcmyk(24.6%, 84.5%, 0%, 44.3%)
CIE-LABlab(28.52, 53.47, -47.46)
CIE-LCHlch(28.52, 71.49, 318.41°)
OKLaboklab(40.81% 0.1254 -0.1344)
OKLCHoklch(40.81% 0.184 313)
XYZxyz(11.2319, 5.6530, 26.0854)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B168E #398E16
analogous
#2F168E #6B168E #8E1675
triadic
#6B168E #8E6B16 #168E6B
tetradic
#6B168E #8E2F16 #398E16 #16758E
square
#6B168E #8E2F16 #398E16 #16758E
split-complementary
#6B168E #758E16 #168E2F
monochromatic
#1B0624 #430E59 #6B168E #931EC3 #B13DE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6B168E#FFFFFF#000000##FFFFFF
##6B168E1.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)
#003F91
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#673554
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6b168e;
/* rgb */ color: rgb(107, 22, 142);
/* oklch */ color: oklch(40.8% 0.184 313.0);
Tailwind
colors: {
  custom: {
    50: '#9a60b0',
    500: '#6b168e',
    950: '#000000',
  },
}
SCSS
$custom: #6b168e;
$custom-light: #9a60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b168e",
  "rgb": {
    "r": 107,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 282.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40809,
    "c": 0.1838,
    "h": 313
  },
  "luminance": 0.05653
}

Semantic roles & 50–950 ramp

primary
#6B168E
secondary
#65C13F
accent
#F0386E
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0F0510
muted
#7E7A7F

Preview Lab

Preview with #6B168E

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

Preview Lab → · Contrast checker → · Palette generator →

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