#6B1FA6#6B1FA6

#6B1FA6 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.5% C 0.198 H 304.5°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#6B1FA6
RGBrgb(107, 31, 166)
HSLhsl(274, 69%, 39%)
HSVhsv(274, 81%, 65%)
CMYKcmyk(35.5%, 81.3%, 0%, 34.9%)
CIE-LABlab(31.48, 55.78, -57.30)
CIE-LCHlch(31.48, 79.97, 314.23°)
OKLaboklab(43.49% 0.1122 -0.1634)
OKLCHoklch(43.49% 0.198 304.5)
XYZxyz(13.4347, 6.8590, 36.6851)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1FA6 #5AA61F
analogous
#271FA6 #6B1FA6 #A61F9D
triadic
#6B1FA6 #A66B1F #1FA66B
tetradic
#6B1FA6 #A6271F #5AA61F #1F9DA6
square
#6B1FA6 #A6271F #5AA61F #1F9DA6
split-complementary
#6B1FA6 #9DA61F #1FA627
monochromatic
#290C3F #4A1572 #6B1FA6 #8C2BD7 #A85EE1

Accessibility & contrast

On white

8.85
#6B1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#6B1FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B1FA6
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1FA6#FFFFFF#000000##FFFFFF
##6B1FA61.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#004AA3
Tritanopia (blue-blind)
#5F4463
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6b1fa6;
/* rgb */ color: rgb(107, 31, 166);
/* oklch */ color: oklch(43.5% 0.198 304.5);
Tailwind
colors: {
  custom: {
    50: '#9b65c1',
    500: '#6b1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #6b1fa6;
$custom-light: #9b65c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1fa6",
  "rgb": {
    "r": 107,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 273.778,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.43486,
    "c": 0.19822,
    "h": 304.5
  },
  "luminance": 0.06859
}

Semantic roles & 50–950 ramp

primary
#6B1FA6
secondary
#8AC55B
accent
#EB3C89
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6B1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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