#6B1D94#6B1D94

#6B1D94 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.8% C 0.183 H 310.4°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#6B1D94
RGBrgb(107, 29, 148)
HSLhsl(279, 67%, 35%)
HSVhsv(279, 80%, 58%)
CMYKcmyk(27.7%, 80.4%, 0%, 42%)
CIE-LABlab(29.77, 52.48, -49.13)
CIE-LCHlch(29.77, 71.89, 316.89°)
OKLaboklab(41.83% 0.1185 -0.1394)
OKLCHoklch(41.83% 0.183 310.4)
XYZxyz(11.8470, 6.1429, 28.5728)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1D94 #46941D
analogous
#301D94 #6B1D94 #941D82
triadic
#6B1D94 #946B1D #1D946B
tetradic
#6B1D94 #94301D #46941D #1D8294
square
#6B1D94 #94301D #46941D #1D8294
split-complementary
#6B1D94 #82941D #1D9430
monochromatic
#21092E #461361 #6B1D94 #9027C7 #AC4FDC

Accessibility & contrast

On white

9.42
#6B1D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B1D94
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1D94#FFFFFF#000000##FFFFFF
##6B1D941.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004397
Deuteranopia (green-blind)
#004792
Tritanopia (blue-blind)
#653B59
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6b1d94;
/* rgb */ color: rgb(107, 29, 148);
/* oklch */ color: oklch(41.8% 0.183 310.4);
Tailwind
colors: {
  custom: {
    50: '#9a63b4',
    500: '#6b1d94',
    950: '#000000',
  },
}
SCSS
$custom: #6b1d94;
$custom-light: #9a63b4;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1d94",
  "rgb": {
    "r": 107,
    "g": 29,
    "b": 148
  },
  "hsl": {
    "h": 279.328,
    "s": 67.232,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41832,
    "c": 0.18295,
    "h": 310.4
  },
  "luminance": 0.06143
}

Semantic roles & 50–950 ramp

primary
#6B1D94
secondary
#75BF4E
accent
#EA3E79
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6B1D94

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

Preview Lab → · Contrast checker → · Palette generator →

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