#6852CB#6852CB

#6852CB is a mid, vivid violet. Relative luminance 0.133; OKLCH L 52.7% C 0.180 H 286.9°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#6852CB
RGBrgb(104, 82, 203)
HSLhsl(251, 54%, 56%)
HSVhsv(251, 60%, 80%)
CMYKcmyk(48.8%, 59.6%, 0%, 20.4%)
CIE-LABlab(43.19, 39.76, -60.09)
CIE-LCHlch(43.19, 72.05, 303.49°)
OKLaboklab(52.69% 0.0521 -0.1719)
OKLCHoklch(52.69% 0.18 286.9)
XYZxyz(19.5026, 13.2886, 58.0257)
Luminance0.1329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6852CB #B5CB52
analogous
#5278CB #6852CB #A452CB
triadic
#6852CB #CB6852 #52CB68
tetradic
#6852CB #CB5278 #B5CB52 #52CBA4
square
#6852CB #CB5278 #B5CB52 #52CBA4
split-complementary
#6852CB #CBA452 #78CB52
monochromatic
#35267D #4A34AC #6852CB #9181D9 #BAB0E7

Accessibility & contrast

On white

5.74
#6852CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#6852CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6852CB
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6852CB#FFFFFF#000000##FFFFFF
##6852CB1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#0063C8
Tritanopia (blue-blind)
#466E87
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #6852cb;
/* rgb */ color: rgb(104, 82, 203);
/* oklch */ color: oklch(52.7% 0.180 286.9);
Tailwind
colors: {
  custom: {
    50: '#9a83dc',
    500: '#6852cb',
    950: '#000000',
  },
}
SCSS
$custom: #6852cb;
$custom-light: #9a83dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6852cb",
  "rgb": {
    "r": 104,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 250.909,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.52693,
    "c": 0.1796,
    "h": 286.9
  },
  "luminance": 0.13289
}

Semantic roles & 50–950 ramp

primary
#6852CB
secondary
#CCD5A3
accent
#DD4BC3
background
#FAF8FD
surface
#F3EFFB
border
#CDCAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #6852CB

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

Preview Lab → · Contrast checker → · Palette generator →

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