#6848CB#6848CB

#6848CB is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.1% C 0.193 H 289.0°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#6848CB
RGBrgb(104, 72, 203)
HSLhsl(255, 56%, 54%)
HSVhsv(255, 65%, 80%)
CMYKcmyk(48.8%, 64.5%, 0%, 20.4%)
CIE-LABlab(41.04, 45.48, -63.59)
CIE-LCHlch(41.04, 78.18, 305.57°)
OKLaboklab(51.12% 0.0626 -0.1822)
OKLCHoklch(51.12% 0.193 289)
XYZxyz(18.8027, 11.8888, 57.7924)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6848CB #ABCB48
analogous
#486ACB #6848CB #A948CB
triadic
#6848CB #CB6848 #48CB68
tetradic
#6848CB #CB486A #ABCB48 #48CBA9
square
#6848CB #CB486A #ABCB48 #48CBA9
split-complementary
#6848CB #CBA948 #6ACB48
monochromatic
#372277 #4C2FA6 #6848CB #8F78D9 #B7A7E6

Accessibility & contrast

On white

6.22
#6848CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#6848CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6848CB
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6848CB#FFFFFF#000000##FFFFFF
##6848CB1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CF
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#466883
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6848cb;
/* rgb */ color: rgb(104, 72, 203);
/* oklch */ color: oklch(51.1% 0.193 289.0);
Tailwind
colors: {
  custom: {
    50: '#9b7ddc',
    500: '#6848cb',
    950: '#000000',
  },
}
SCSS
$custom: #6848cb;
$custom-light: #9b7ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#6848cb",
  "rgb": {
    "r": 104,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 254.656,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.51122,
    "c": 0.19263,
    "h": 289
  },
  "luminance": 0.1189
}

Semantic roles & 50–950 ramp

primary
#6848CB
secondary
#C6D39B
accent
#DF49BA
background
#FAF7FD
surface
#F3EEFB
border
#CDC9D4
text
#0F0A15
muted
#7F7C83

Preview Lab

Preview with #6848CB

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

Preview Lab → · Contrast checker → · Palette generator →

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