#6852CC#6852CC

#6852CC is a mid, vivid violet. Relative luminance 0.133; OKLCH L 52.8% C 0.181 H 286.7°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#6852CC
RGBrgb(104, 82, 204)
HSLhsl(251, 54%, 56%)
HSVhsv(251, 60%, 80%)
CMYKcmyk(49%, 59.8%, 0%, 20%)
CIE-LABlab(43.27, 40.05, -60.55)
CIE-LCHlch(43.27, 72.60, 303.48°)
OKLaboklab(52.77% 0.0521 -0.1732)
OKLCHoklch(52.77% 0.181 286.7)
XYZxyz(19.6221, 13.3364, 58.6553)
Luminance0.1334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6852CC #B6CC52
analogous
#5279CC #6852CC #A552CC
triadic
#6852CC #CC6852 #52CC68
tetradic
#6852CC #CC5279 #B6CC52 #52CCA5
square
#6852CC #CC5279 #B6CC52 #52CCA5
split-complementary
#6852CC #CCA552 #79CC52
monochromatic
#35257E #4933AE #6852CC #9181DA #BBB1E8

Accessibility & contrast

On white

5.73
#6852CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#6852CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6852CC
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6852CC#FFFFFF#000000##FFFFFF
##6852CC1.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#0063C9
Tritanopia (blue-blind)
#456E87
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #6852cc;
/* rgb */ color: rgb(104, 82, 204);
/* oklch */ color: oklch(52.8% 0.181 286.7);
Tailwind
colors: {
  custom: {
    50: '#9b83dc',
    500: '#6852cc',
    950: '#000000',
  },
}
SCSS
$custom: #6852cc;
$custom-light: #9b83dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6852cc",
  "rgb": {
    "r": 104,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 250.82,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.52767,
    "c": 0.1809,
    "h": 286.7
  },
  "luminance": 0.13337
}

Semantic roles & 50–950 ramp

primary
#6852CC
secondary
#CDD6A4
accent
#DE4AC3
background
#FAF8FD
surface
#F3EFFB
border
#CDCAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #6852CC

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

Preview Lab → · Contrast checker → · Palette generator →

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