#6B178F#6B178F

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

Color values

HEX#6B178F
RGBrgb(107, 23, 143)
HSLhsl(282, 72%, 33%)
HSVhsv(282, 84%, 56%)
CMYKcmyk(25.2%, 83.9%, 0%, 43.9%)
CIE-LABlab(28.70, 53.38, -47.78)
CIE-LCHlch(28.70, 71.64, 318.17°)
OKLaboklab(40.96% 0.1244 -0.1354)
OKLCHoklch(40.96% 0.184 312.6)
XYZxyz(11.3268, 5.7221, 26.4891)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B178F #3B8F17
analogous
#2F178F #6B178F #8F1777
triadic
#6B178F #8F6B17 #178F6B
tetradic
#6B178F #8F2F17 #3B8F17 #17778F
square
#6B178F #8F2F17 #3B8F17 #17778F
split-complementary
#6B178F #778F17 #178F2F
monochromatic
#1C0626 #440F5A #6B178F #921FC4 #B040E0

Accessibility & contrast

On white

9.79
#6B178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B178F
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B178F#FFFFFF#000000##FFFFFF
##6B178F1.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00458D
Tritanopia (blue-blind)
#673655
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6b178f;
/* rgb */ color: rgb(107, 23, 143);
/* oklch */ color: oklch(41.0% 0.184 312.6);
Tailwind
colors: {
  custom: {
    50: '#9a61b1',
    500: '#6b178f',
    950: '#000000',
  },
}
SCSS
$custom: #6b178f;
$custom-light: #9a61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#6b178f",
  "rgb": {
    "r": 107,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 282,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.4096,
    "c": 0.18385,
    "h": 312.6
  },
  "luminance": 0.05722
}

Semantic roles & 50–950 ramp

primary
#6B178F
secondary
#67C141
accent
#EF396F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0511
muted
#7E7A80

Preview Lab

Preview with #6B178F

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

Preview Lab → · Contrast checker → · Palette generator →

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