#6A4DCA#6A4DCA

#6A4DCA is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.0% C 0.185 H 289.0°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#6A4DCA
RGBrgb(106, 77, 202)
HSLhsl(254, 54%, 55%)
HSVhsv(254, 62%, 79%)
CMYKcmyk(47.5%, 61.9%, 0%, 20.8%)
CIE-LABlab(42.21, 42.76, -61.10)
CIE-LCHlch(42.21, 74.58, 304.98°)
OKLaboklab(51.99% 0.0602 -0.1748)
OKLCHoklch(51.99% 0.185 289)
XYZxyz(19.2553, 12.6354, 57.2900)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A4DCA #ADCA4D
analogous
#4D6FCA #6A4DCA #A94DCA
triadic
#6A4DCA #CA6A4D #4DCA6A
tetradic
#6A4DCA #CA4D6F #ADCA4D #4DCAA9
square
#6A4DCA #CA4D6F #ADCA4D #4DCAA9
split-complementary
#6A4DCA #CAA94D #6FCA4D
monochromatic
#382479 #4D32A8 #6A4DCA #917CD8 #B9ABE6

Accessibility & contrast

On white

5.95
#6A4DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#6A4DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A4DCA
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A4DCA#FFFFFF#000000##FFFFFF
##6A4DCA1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#0061C7
Tritanopia (blue-blind)
#4B6A84
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6a4dca;
/* rgb */ color: rgb(106, 77, 202);
/* oklch */ color: oklch(52.0% 0.185 289.0);
Tailwind
colors: {
  custom: {
    50: '#9c80db',
    500: '#6a4dca',
    950: '#000000',
  },
}
SCSS
$custom: #6a4dca;
$custom-light: #9c80db;
$custom-dark: #000000;
JSON
{
  "hex": "#6a4dca",
  "rgb": {
    "r": 106,
    "g": 77,
    "b": 202
  },
  "hsl": {
    "h": 253.92,
    "s": 54.113,
    "l": 54.706
  },
  "oklch": {
    "l": 0.51993,
    "c": 0.18487,
    "h": 289
  },
  "luminance": 0.12636
}

Semantic roles & 50–950 ramp

primary
#6A4DCA
secondary
#C8D49F
accent
#DD4ABB
background
#FAF7FD
surface
#F3EEFB
border
#CDC9D4
text
#0F0A15
muted
#7F7C83

Preview Lab

Preview with #6A4DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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