#6A1B9E#6A1B9E

#6A1B9E is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.4% C 0.194 H 306.8°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#6A1B9E
RGBrgb(106, 27, 158)
HSLhsl(276, 71%, 36%)
HSVhsv(276, 83%, 62%)
CMYKcmyk(32.9%, 82.9%, 0%, 38%)
CIE-LABlab(30.20, 55.18, -54.56)
CIE-LCHlch(30.20, 77.60, 315.33°)
OKLaboklab(42.35% 0.1161 -0.1553)
OKLCHoklch(42.35% 0.194 306.8)
XYZxyz(12.5060, 6.3168, 32.9016)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1B9E #4F9E1B
analogous
#281B9E #6A1B9E #9E1B91
triadic
#6A1B9E #9E6A1B #1B9E6A
tetradic
#6A1B9E #9E281B #4F9E1B #1B919E
square
#6A1B9E #9E281B #4F9E1B #1B919E
split-complementary
#6A1B9E #919E1B #1B9E28
monochromatic
#240935 #47126A #6A1B9E #8D24D2 #A852E1

Accessibility & contrast

On white

9.28
#6A1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#6A1B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1B9E
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1B9E#FFFFFF#000000##FFFFFF
##6A1B9E1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00489B
Tritanopia (blue-blind)
#613F5E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6a1b9e;
/* rgb */ color: rgb(106, 27, 158);
/* oklch */ color: oklch(42.4% 0.194 306.8);
Tailwind
colors: {
  custom: {
    50: '#9a63bc',
    500: '#6a1b9e',
    950: '#000000',
  },
}
SCSS
$custom: #6a1b9e;
$custom-light: #9a63bc;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1b9e",
  "rgb": {
    "r": 106,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 276.183,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.42353,
    "c": 0.19391,
    "h": 306.8
  },
  "luminance": 0.06317
}

Semantic roles & 50–950 ramp

primary
#6A1B9E
secondary
#7EC451
accent
#EE3A81
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6A1B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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