#6B1D97#6B1D97

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

Color values

HEX#6B1D97
RGBrgb(107, 29, 151)
HSLhsl(278, 68%, 35%)
HSVhsv(278, 81%, 59%)
CMYKcmyk(29.1%, 80.8%, 0%, 40.8%)
CIE-LABlab(30.01, 53.13, -50.59)
CIE-LCHlch(30.01, 73.36, 316.41°)
OKLaboklab(42.07% 0.1178 -0.1436)
OKLCHoklch(42.07% 0.186 309.4)
XYZxyz(12.0875, 6.2391, 29.8397)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1D97 #49971D
analogous
#2E1D97 #6B1D97 #971D86
triadic
#6B1D97 #976B1D #1D976B
tetradic
#6B1D97 #972E1D #49971D #1D8697
square
#6B1D97 #972E1D #49971D #1D8697
split-complementary
#6B1D97 #86971D #1D972E
monochromatic
#220930 #471364 #6B1D97 #8F27CA #AB51DE

Accessibility & contrast

On white

9.34
#6B1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#6B1D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B1D97
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1D97#FFFFFF#000000##FFFFFF
##6B1D971.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#643C5A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6b1d97;
/* rgb */ color: rgb(107, 29, 151);
/* oklch */ color: oklch(42.1% 0.186 309.4);
Tailwind
colors: {
  custom: {
    50: '#9a63b6',
    500: '#6b1d97',
    950: '#000000',
  },
}
SCSS
$custom: #6b1d97;
$custom-light: #9a63b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1d97",
  "rgb": {
    "r": 107,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 278.361,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.42073,
    "c": 0.18577,
    "h": 309.4
  },
  "luminance": 0.06239
}

Semantic roles & 50–950 ramp

primary
#6B1D97
secondary
#78C04F
accent
#EB3D7C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6B1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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