#6A3EC6#6A3EC6

#6A3EC6 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.5% C 0.199 H 292.4°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#6A3EC6
RGBrgb(106, 62, 198)
HSLhsl(259, 54%, 51%)
HSVhsv(259, 69%, 78%)
CMYKcmyk(46.5%, 68.7%, 0%, 22.4%)
CIE-LABlab(38.87, 49.84, -64.20)
CIE-LCHlch(38.87, 81.28, 307.82°)
OKLaboklab(49.49% 0.0759 -0.1839)
OKLCHoklch(49.49% 0.199 292.4)
XYZxyz(17.8567, 10.5860, 54.5176)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A3EC6 #9AC63E
analogous
#3E56C6 #6A3EC6 #AE3EC6
triadic
#6A3EC6 #C66A3E #3EC66A
tetradic
#6A3EC6 #C63E56 #9AC63E #3EC6AE
square
#6A3EC6 #C63E56 #9AC63E #3EC6AE
split-complementary
#6A3EC6 #C6AE3E #56C63E
monochromatic
#381F6A #502D99 #6A3EC6 #8E6DD4 #B39CE2

Accessibility & contrast

On white

6.74
#6A3EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#6A3EC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A3EC6
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A3EC6#FFFFFF#000000##FFFFFF
##6A3EC61.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCA
Deuteranopia (green-blind)
#0059C3
Tritanopia (blue-blind)
#4E607D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6a3ec6;
/* rgb */ color: rgb(106, 62, 198);
/* oklch */ color: oklch(49.5% 0.199 292.4);
Tailwind
colors: {
  custom: {
    50: '#9c76d8',
    500: '#6a3ec6',
    950: '#000000',
  },
}
SCSS
$custom: #6a3ec6;
$custom-light: #9c76d8;
$custom-dark: #000000;
JSON
{
  "hex": "#6a3ec6",
  "rgb": {
    "r": 106,
    "g": 62,
    "b": 198
  },
  "hsl": {
    "h": 259.412,
    "s": 54.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.49491,
    "c": 0.19895,
    "h": 292.4
  },
  "luminance": 0.10587
}

Semantic roles & 50–950 ramp

primary
#6A3EC6
secondary
#BBCE92
accent
#DE4AAE
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6A3EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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