#6852CD#6852CD

#6852CD is a mid, vivid violet. Relative luminance 0.134; OKLCH L 52.8% C 0.182 H 286.6°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#6852CD
RGBrgb(104, 82, 205)
HSLhsl(251, 55%, 56%)
HSVhsv(251, 60%, 80%)
CMYKcmyk(49.3%, 60%, 0%, 19.6%)
CIE-LABlab(43.34, 40.35, -61.01)
CIE-LCHlch(43.34, 73.15, 303.48°)
OKLaboklab(52.84% 0.0521 -0.1746)
OKLCHoklch(52.84% 0.182 286.6)
XYZxyz(19.7424, 13.3845, 59.2890)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6852CD #B7CD52
analogous
#527ACD #6852CD #A652CD
triadic
#6852CD #CD6852 #52CD68
tetradic
#6852CD #CD527A #B7CD52 #52CDA6
square
#6852CD #CD527A #B7CD52 #52CDA6
split-complementary
#6852CD #CDA652 #7ACD52
monochromatic
#352580 #4933AF #6852CD #9181DB #BBB1E8

Accessibility & contrast

On white

5.71
#6852CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#6852CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6852CD
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6852CD#FFFFFF#000000##FFFFFF
##6852CD1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#0063CA
Tritanopia (blue-blind)
#446F88
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #6852cd;
/* rgb */ color: rgb(104, 82, 205);
/* oklch */ color: oklch(52.8% 0.182 286.6);
Tailwind
colors: {
  custom: {
    50: '#9b83dd',
    500: '#6852cd',
    950: '#000000',
  },
}
SCSS
$custom: #6852cd;
$custom-light: #9b83dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6852cd",
  "rgb": {
    "r": 104,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 250.732,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.52842,
    "c": 0.18219,
    "h": 286.6
  },
  "luminance": 0.13385
}

Semantic roles & 50–950 ramp

primary
#6852CD
secondary
#CED7A4
accent
#DE49C4
background
#FAF8FD
surface
#F3EFFB
border
#CDCAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #6852CD

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

Preview Lab → · Contrast checker → · Palette generator →

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