#7852DB#7852DB

#7852DB is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.3% C 0.199 H 291.3°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#7852DB
RGBrgb(120, 82, 219)
HSLhsl(257, 66%, 59%)
HSVhsv(257, 63%, 86%)
CMYKcmyk(45.2%, 62.6%, 0%, 14.1%)
CIE-LABlab(45.83, 47.53, -64.93)
CIE-LCHlch(45.83, 80.46, 306.20°)
OKLaboklab(55.33% 0.0722 -0.1856)
OKLCHoklch(55.33% 0.199 291.3)
XYZxyz(23.5456, 15.1413, 68.6861)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7852DB #B5DB52
analogous
#5271DB #7852DB #BC52DB
triadic
#7852DB #DB7852 #52DB78
tetradic
#7852DB #DB5271 #B5DB52 #52DBBC
square
#7852DB #DB5271 #B5DB52 #52DBBC
split-complementary
#7852DB #DBBC52 #71DB52
monochromatic
#3F1F94 #5529C6 #7852DB #A085E6 #C7B7F0

Accessibility & contrast

On white

5.21
#7852DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#7852DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7852DB
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7852DB#FFFFFF#000000##FFFFFF
##7852DB1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDF
Deuteranopia (green-blind)
#006AD8
Tritanopia (blue-blind)
#5A728F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7852db;
/* rgb */ color: rgb(120, 82, 219);
/* oklch */ color: oklch(55.3% 0.199 291.3);
Tailwind
colors: {
  custom: {
    50: '#a684e7',
    500: '#7852db',
    950: '#000000',
  },
}
SCSS
$custom: #7852db;
$custom-light: #a684e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7852db",
  "rgb": {
    "r": 120,
    "g": 82,
    "b": 219
  },
  "hsl": {
    "h": 256.642,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.55331,
    "c": 0.19916,
    "h": 291.3
  },
  "luminance": 0.15142
}

Semantic roles & 50–950 ramp

primary
#7852DB
secondary
#D0DFAA
accent
#E93FBA
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7852DB

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

Preview Lab → · Contrast checker → · Palette generator →

#7852DB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva