#6846CB#6846CB

#6846CB is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.8% C 0.195 H 289.3°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#6846CB
RGBrgb(104, 70, 203)
HSLhsl(255, 56%, 54%)
HSVhsv(255, 66%, 80%)
CMYKcmyk(48.8%, 65.5%, 0%, 20.4%)
CIE-LABlab(40.63, 46.59, -64.26)
CIE-LCHlch(40.63, 79.37, 305.94°)
OKLaboklab(50.83% 0.0646 -0.1841)
OKLCHoklch(50.83% 0.195 289.3)
XYZxyz(18.6755, 11.6344, 57.7500)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6846CB #A9CB46
analogous
#4666CB #6846CB #AA46CB
triadic
#6846CB #CB6846 #46CB68
tetradic
#6846CB #CB4666 #A9CB46 #46CBAA
square
#6846CB #CB4666 #A9CB46 #46CBAA
split-complementary
#6846CB #CBAA46 #66CB46
monochromatic
#372176 #4D2EA5 #6846CB #8F76D8 #B6A6E6

Accessibility & contrast

On white

6.31
#6846CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#6846CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6846CB
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6846CB#FFFFFF#000000##FFFFFF
##6846CB1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#476782
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6846cb;
/* rgb */ color: rgb(104, 70, 203);
/* oklch */ color: oklch(50.8% 0.195 289.3);
Tailwind
colors: {
  custom: {
    50: '#9b7bdc',
    500: '#6846cb',
    950: '#000000',
  },
}
SCSS
$custom: #6846cb;
$custom-light: #9b7bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#6846cb",
  "rgb": {
    "r": 104,
    "g": 70,
    "b": 203
  },
  "hsl": {
    "h": 255.338,
    "s": 56.118,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50826,
    "c": 0.19514,
    "h": 289.3
  },
  "luminance": 0.11635
}

Semantic roles & 50–950 ramp

primary
#6846CB
secondary
#C4D39A
accent
#DF48B9
background
#FAF7FD
surface
#F3EEFB
border
#CDC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6846CB

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

Preview Lab → · Contrast checker → · Palette generator →

#6846CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva