#6B178C#6B178C

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

Color values

HEX#6B178C
RGBrgb(107, 23, 140)
HSLhsl(283, 72%, 32%)
HSVhsv(283, 84%, 55%)
CMYKcmyk(23.6%, 83.6%, 0%, 45.1%)
CIE-LABlab(28.47, 52.76, -46.30)
CIE-LCHlch(28.47, 70.20, 318.73°)
OKLaboklab(40.72% 0.1251 -0.131)
OKLCHoklch(40.72% 0.181 313.7)
XYZxyz(11.1026, 5.6324, 25.3082)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B178C #388C17
analogous
#31178C #6B178C #8C1773
triadic
#6B178C #8C6B17 #178C6B
tetradic
#6B178C #8C3117 #388C17 #17738C
square
#6B178C #8C3117 #388C17 #17738C
split-complementary
#6B178C #738C17 #178C31
monochromatic
#1B0623 #430E57 #6B178C #9320C1 #B23EDF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6B178C#FFFFFF#000000##FFFFFF
##6B178C1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b178c;
/* rgb */ color: rgb(107, 23, 140);
/* oklch */ color: oklch(40.7% 0.181 313.7);
Tailwind
colors: {
  custom: {
    50: '#9a60ae',
    500: '#6b178c',
    950: '#000000',
  },
}
SCSS
$custom: #6b178c;
$custom-light: #9a60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6b178c",
  "rgb": {
    "r": 107,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 283.077,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40723,
    "c": 0.18116,
    "h": 313.7
  },
  "luminance": 0.05632
}

Semantic roles & 50–950 ramp

primary
#6B178C
secondary
#63BF3F
accent
#EF396C
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0510
muted
#7E7A7F

Preview Lab

Preview with #6B178C

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

Preview Lab → · Contrast checker → · Palette generator →

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