#6B46BA#6B46BA

#6B46BA is a mid, vivid violet. Relative luminance 0.111; OKLCH L 49.8% C 0.174 H 293.8°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#6B46BA
RGBrgb(107, 70, 186)
HSLhsl(259, 46%, 50%)
HSVhsv(259, 62%, 73%)
CMYKcmyk(42.5%, 62.4%, 0%, 27.1%)
CIE-LABlab(39.67, 42.40, -55.90)
CIE-LCHlch(39.67, 70.16, 307.18°)
OKLaboklab(49.8% 0.0703 -0.1595)
OKLCHoklch(49.8% 0.174 293.8)
XYZxyz(17.1141, 11.0508, 47.6762)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B46BA #95BA46
analogous
#465BBA #6B46BA #A546BA
triadic
#6B46BA #BA6B46 #46BA6B
tetradic
#6B46BA #BA465B #95BA46 #46BAA5
square
#6B46BA #BA465B #95BA46 #46BAA5
split-complementary
#6B46BA #BAA546 #5BBA46
monochromatic
#382461 #51358E #6B46BA #8F73CB #B29FDB

Accessibility & contrast

On white

6.54
#6B46BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#6B46BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B46BA
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B46BA#FFFFFF#000000##FFFFFF
##6B46BA1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#005BB8
Tritanopia (blue-blind)
#566079
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6b46ba;
/* rgb */ color: rgb(107, 70, 186);
/* oklch */ color: oklch(49.8% 0.174 293.8);
Tailwind
colors: {
  custom: {
    50: '#9b7bcf',
    500: '#6b46ba',
    950: '#000000',
  },
}
SCSS
$custom: #6b46ba;
$custom-light: #9b7bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#6b46ba",
  "rgb": {
    "r": 107,
    "g": 70,
    "b": 186
  },
  "hsl": {
    "h": 259.138,
    "s": 45.669,
    "l": 50.196
  },
  "oklch": {
    "l": 0.49801,
    "c": 0.17428,
    "h": 293.8
  },
  "luminance": 0.11051
}

Semantic roles & 50–950 ramp

primary
#6B46BA
secondary
#B7C894
accent
#D552AC
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0F0914
muted
#7E7B82

Preview Lab

Preview with #6B46BA

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

Preview Lab → · Contrast checker → · Palette generator →

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