#6B1D9D#6B1D9D

#6B1D9D is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.6% C 0.191 H 307.4°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#6B1D9D
RGBrgb(107, 29, 157)
HSLhsl(277, 69%, 36%)
HSVhsv(277, 82%, 62%)
CMYKcmyk(31.8%, 81.5%, 0%, 38.4%)
CIE-LABlab(30.49, 54.45, -53.46)
CIE-LCHlch(30.49, 76.31, 315.53°)
OKLaboklab(42.56% 0.1163 -0.1521)
OKLCHoklch(42.56% 0.191 307.4)
XYZxyz(12.5873, 6.4390, 32.4715)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B1D9D #4F9D1D
analogous
#2B1D9D #6B1D9D #9D1D8F
triadic
#6B1D9D #9D6B1D #1D9D6B
tetradic
#6B1D9D #9D2B1D #4F9D1D #1D8F9D
square
#6B1D9D #9D2B1D #4F9D1D #1D8F9D
split-complementary
#6B1D9D #8F9D1D #1D9D2B
monochromatic
#250A36 #481369 #6B1D9D #8E27D1 #A955E0

Accessibility & contrast

On white

9.18
#6B1D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#6B1D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B1D9D
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B1D9D#FFFFFF#000000##FFFFFF
##6B1D9D1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#00489B
Tritanopia (blue-blind)
#623F5E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6b1d9d;
/* rgb */ color: rgb(107, 29, 157);
/* oklch */ color: oklch(42.6% 0.191 307.4);
Tailwind
colors: {
  custom: {
    50: '#9b64bb',
    500: '#6b1d9d',
    950: '#000000',
  },
}
SCSS
$custom: #6b1d9d;
$custom-light: #9b64bb;
$custom-dark: #000000;
JSON
{
  "hex": "#6b1d9d",
  "rgb": {
    "r": 107,
    "g": 29,
    "b": 157
  },
  "hsl": {
    "h": 276.563,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42564,
    "c": 0.19144,
    "h": 307.4
  },
  "luminance": 0.06439
}

Semantic roles & 50–950 ramp

primary
#6B1D9D
secondary
#7FC353
accent
#EC3C81
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6B1D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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