#6C159D#6C159D

#6C159D is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.1% C 0.198 H 308.4°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#6C159D
RGBrgb(108, 21, 157)
HSLhsl(278, 76%, 35%)
HSVhsv(278, 87%, 62%)
CMYKcmyk(31.2%, 86.6%, 0%, 38.4%)
CIE-LABlab(29.81, 57.06, -54.57)
CIE-LCHlch(29.81, 78.95, 316.28°)
OKLaboklab(42.12% 0.1232 -0.1553)
OKLCHoklch(42.12% 0.198 308.4)
XYZxyz(12.5370, 6.1590, 32.4201)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C159D #469D15
analogous
#28159D #6C159D #9D158A
triadic
#6C159D #9D6C15 #159D6C
tetradic
#6C159D #9D2815 #469D15 #158A9D
square
#6C159D #9D2815 #469D15 #158A9D
split-complementary
#6C159D #8A9D15 #159D28
monochromatic
#220731 #470E67 #6C159D #911CD3 #AD46E6

Accessibility & contrast

On white

9.41
#6C159D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#6C159D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C159D
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C159D#FFFFFF#000000##FFFFFF
##6C159D1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#00479A
Tritanopia (blue-blind)
#643C5D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6c159d;
/* rgb */ color: rgb(108, 21, 157);
/* oklch */ color: oklch(42.1% 0.198 308.4);
Tailwind
colors: {
  custom: {
    50: '#9c61bb',
    500: '#6c159d',
    950: '#000000',
  },
}
SCSS
$custom: #6c159d;
$custom-light: #9c61bb;
$custom-dark: #000000;
JSON
{
  "hex": "#6c159d",
  "rgb": {
    "r": 108,
    "g": 21,
    "b": 157
  },
  "hsl": {
    "h": 278.382,
    "s": 76.404,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4212,
    "c": 0.19821,
    "h": 308.4
  },
  "luminance": 0.06159
}

Semantic roles & 50–950 ramp

primary
#6C159D
secondary
#75C747
accent
#F33579
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6C159D

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

Preview Lab → · Contrast checker → · Palette generator →

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