#6B168C#6B168C

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

Color values

HEX#6B168C
RGBrgb(107, 22, 140)
HSLhsl(283, 73%, 32%)
HSVhsv(283, 84%, 55%)
CMYKcmyk(23.6%, 84.3%, 0%, 45.1%)
CIE-LABlab(28.36, 53.06, -46.47)
CIE-LCHlch(28.36, 70.53, 318.79°)
OKLaboklab(40.65% 0.1258 -0.1315)
OKLCHoklch(40.65% 0.182 313.7)
XYZxyz(11.0831, 5.5934, 25.3017)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B168C #378C16
analogous
#30168C #6B168C #8C1672
triadic
#6B168C #8C6B16 #168C6B
tetradic
#6B168C #8C3016 #378C16 #16728C
square
#6B168C #8C3016 #378C16 #16728C
split-complementary
#6B168C #728C16 #168C30
monochromatic
#1A0522 #430E57 #6B168C #931EC1 #B23CE0

Accessibility & contrast

On white

9.91
#6B168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B168C
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B168C#FFFFFF#000000##FFFFFF
##6B168C1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#04458A
Tritanopia (blue-blind)
#683453
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6b168c;
/* rgb */ color: rgb(107, 22, 140);
/* oklch */ color: oklch(40.7% 0.182 313.7);
Tailwind
colors: {
  custom: {
    50: '#9a60ae',
    500: '#6b168c',
    950: '#000000',
  },
}
SCSS
$custom: #6b168c;
$custom-light: #9a60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6b168c",
  "rgb": {
    "r": 107,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 283.22,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40651,
    "c": 0.18203,
    "h": 313.7
  },
  "luminance": 0.05593
}

Semantic roles & 50–950 ramp

primary
#6B168C
secondary
#62C03E
accent
#F0386C
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6B168C

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

Preview Lab → · Contrast checker → · Palette generator →

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