#6D1B9B#6D1B9B

#6D1B9B is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.5% C 0.192 H 309.1°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#6D1B9B
RGBrgb(109, 27, 155)
HSLhsl(278, 70%, 36%)
HSVhsv(278, 83%, 61%)
CMYKcmyk(29.7%, 82.6%, 0%, 39.2%)
CIE-LABlab(30.40, 55.02, -52.37)
CIE-LCHlch(30.40, 75.96, 316.41°)
OKLaboklab(42.51% 0.1211 -0.1488)
OKLCHoklch(42.51% 0.192 309.1)
XYZxyz(12.6138, 6.4019, 31.5752)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D1B9B #499B1B
analogous
#2D1B9B #6D1B9B #9B1B89
triadic
#6D1B9B #9B6D1B #1B9B6D
tetradic
#6D1B9B #9B2D1B #499B1B #1B899B
square
#6D1B9B #9B2D1B #499B1B #1B899B
split-complementary
#6D1B9B #899B1B #1B9B2D
monochromatic
#240933 #481267 #6D1B9B #9224CF #AD50E0

Accessibility & contrast

On white

9.21
#6D1B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#6D1B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D1B9B
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D1B9B#FFFFFF#000000##FFFFFF
##6D1B9B1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004998
Tritanopia (blue-blind)
#663D5C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6d1b9b;
/* rgb */ color: rgb(109, 27, 155);
/* oklch */ color: oklch(42.5% 0.192 309.1);
Tailwind
colors: {
  custom: {
    50: '#9c63b9',
    500: '#6d1b9b',
    950: '#000000',
  },
}
SCSS
$custom: #6d1b9b;
$custom-light: #9c63b9;
$custom-dark: #000000;
JSON
{
  "hex": "#6d1b9b",
  "rgb": {
    "r": 109,
    "g": 27,
    "b": 155
  },
  "hsl": {
    "h": 278.438,
    "s": 70.33,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42513,
    "c": 0.19189,
    "h": 309.1
  },
  "luminance": 0.06402
}

Semantic roles & 50–950 ramp

primary
#6D1B9B
secondary
#79C34F
accent
#ED3B7B
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6D1B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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