#6A1C96#6A1C96

#6A1C96 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.8% C 0.185 H 309.3°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#6A1C96
RGBrgb(106, 28, 150)
HSLhsl(278, 69%, 35%)
HSVhsv(278, 81%, 59%)
CMYKcmyk(29.3%, 81.3%, 0%, 41.2%)
CIE-LABlab(29.66, 53.08, -50.55)
CIE-LCHlch(29.66, 73.30, 316.40°)
OKLaboklab(41.77% 0.1175 -0.1436)
OKLCHoklch(41.77% 0.186 309.3)
XYZxyz(11.8630, 6.0969, 29.4001)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1C96 #48961C
analogous
#2D1C96 #6A1C96 #961C85
triadic
#6A1C96 #966A1C #1C966A
tetradic
#6A1C96 #962D1C #48961C #1C8596
square
#6A1C96 #962D1C #48961C #1C8596
split-complementary
#6A1C96 #85961C #1C962D
monochromatic
#21092F #461262 #6A1C96 #8E26CA #AA4EDE

Accessibility & contrast

On white

9.46
#6A1C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#6A1C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1C96
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1C96#FFFFFF#000000##FFFFFF
##6A1C961.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#004794
Tritanopia (blue-blind)
#633C5A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #6a1c96;
/* rgb */ color: rgb(106, 28, 150);
/* oklch */ color: oklch(41.8% 0.185 309.3);
Tailwind
colors: {
  custom: {
    50: '#9a63b6',
    500: '#6a1c96',
    950: '#000000',
  },
}
SCSS
$custom: #6a1c96;
$custom-light: #9a63b6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1c96",
  "rgb": {
    "r": 106,
    "g": 28,
    "b": 150
  },
  "hsl": {
    "h": 278.361,
    "s": 68.539,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4177,
    "c": 0.1855,
    "h": 309.3
  },
  "luminance": 0.06097
}

Semantic roles & 50–950 ramp

primary
#6A1C96
secondary
#77C14D
accent
#EB3C7C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A1C96

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

Preview Lab → · Contrast checker → · Palette generator →

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