#6F17A1#6F17A1

#6F17A1 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 43.0% C 0.201 H 308.4°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#6F17A1
RGBrgb(111, 23, 161)
HSLhsl(278, 75%, 36%)
HSVhsv(278, 86%, 63%)
CMYKcmyk(31.1%, 85.7%, 0%, 36.9%)
CIE-LABlab(30.80, 57.83, -55.37)
CIE-LCHlch(30.80, 80.06, 316.24°)
OKLaboklab(43% 0.125 -0.1575)
OKLCHoklch(43% 0.201 308.4)
XYZxyz(13.2936, 6.5657, 34.2783)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F17A1 #49A117
analogous
#2A17A1 #6F17A1 #A1178E
triadic
#6F17A1 #A16F17 #17A16F
tetradic
#6F17A1 #A12A17 #49A117 #178EA1
square
#6F17A1 #A12A17 #49A117 #178EA1
split-complementary
#6F17A1 #8EA117 #17A12A
monochromatic
#250836 #4A0F6B #6F17A1 #941FD7 #AE4DE6

Accessibility & contrast

On white

9.08
#6F17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#6F17A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F17A1
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F17A1#FFFFFF#000000##FFFFFF
##6F17A11.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#00499E
Tritanopia (blue-blind)
#673E5F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6f17a1;
/* rgb */ color: rgb(111, 23, 161);
/* oklch */ color: oklch(43.0% 0.201 308.4);
Tailwind
colors: {
  custom: {
    50: '#9e62be',
    500: '#6f17a1',
    950: '#000000',
  },
}
SCSS
$custom: #6f17a1;
$custom-light: #9e62be;
$custom-dark: #000000;
JSON
{
  "hex": "#6f17a1",
  "rgb": {
    "r": 111,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 278.261,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.43002,
    "c": 0.20109,
    "h": 308.4
  },
  "luminance": 0.06566
}

Semantic roles & 50–950 ramp

primary
#6F17A1
secondary
#79C74C
accent
#F2367A
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6F17A1

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

Preview Lab → · Contrast checker → · Palette generator →

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