#6A1BA1#6A1BA1

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

Color values

HEX#6A1BA1
RGBrgb(106, 27, 161)
HSLhsl(275, 71%, 37%)
HSVhsv(275, 83%, 63%)
CMYKcmyk(34.2%, 83.2%, 0%, 36.9%)
CIE-LABlab(30.45, 55.85, -55.97)
CIE-LCHlch(30.45, 79.06, 314.94°)
OKLaboklab(42.61% 0.1152 -0.1595)
OKLCHoklch(42.61% 0.197 305.8)
XYZxyz(12.7674, 6.4214, 34.2781)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1BA1 #52A11B
analogous
#271BA1 #6A1BA1 #A11B95
triadic
#6A1BA1 #A16A1B #1BA16A
tetradic
#6A1BA1 #A1271B #52A11B #1B95A1
square
#6A1BA1 #A1271B #52A11B #1B95A1
split-complementary
#6A1BA1 #95A11B #1BA127
monochromatic
#250938 #47126D #6A1BA1 #8D24D5 #A854E2

Accessibility & contrast

On white

9.19
#6A1BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A1BA1
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1BA1#FFFFFF#000000##FFFFFF
##6A1BA11.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#00489E
Tritanopia (blue-blind)
#604060
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6a1ba1;
/* rgb */ color: rgb(106, 27, 161);
/* oklch */ color: oklch(42.6% 0.197 305.8);
Tailwind
colors: {
  custom: {
    50: '#9a63be',
    500: '#6a1ba1',
    950: '#000000',
  },
}
SCSS
$custom: #6a1ba1;
$custom-light: #9a63be;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1ba1",
  "rgb": {
    "r": 106,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 275.373,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42607,
    "c": 0.19673,
    "h": 305.8
  },
  "luminance": 0.06421
}

Semantic roles & 50–950 ramp

primary
#6A1BA1
secondary
#82C552
accent
#EE3A84
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6A1BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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