#7852DE#7852DE

#7852DE is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 55.6% C 0.203 H 290.8°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#7852DE
RGBrgb(120, 82, 222)
HSLhsl(256, 68%, 60%)
HSVhsv(256, 63%, 87%)
CMYKcmyk(45.9%, 63.1%, 0%, 12.9%)
CIE-LABlab(46.04, 48.36, -66.29)
CIE-LCHlch(46.04, 82.05, 306.11°)
OKLaboklab(55.56% 0.072 -0.1896)
OKLCHoklch(55.56% 0.203 290.8)
XYZxyz(23.9441, 15.3007, 70.7848)
Luminance0.1530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7852DE #B8DE52
analogous
#5272DE #7852DE #BE52DE
triadic
#7852DE #DE7852 #52DE78
tetradic
#7852DE #DE5272 #B8DE52 #52DEBE
square
#7852DE #DE5272 #B8DE52 #52DEBE
split-complementary
#7852DE #DEBE52 #72DE52
monochromatic
#3F1D99 #5427CC #7852DE #A085E8 #C8B9F2

Accessibility & contrast

On white

5.17
#7852DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#7852DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7852DE
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7852DE#FFFFFF#000000##FFFFFF
##7852DE1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE2
Deuteranopia (green-blind)
#006ADB
Tritanopia (blue-blind)
#597391
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7852de;
/* rgb */ color: rgb(120, 82, 222);
/* oklch */ color: oklch(55.6% 0.203 290.8);
Tailwind
colors: {
  custom: {
    50: '#a684e9',
    500: '#7852de',
    950: '#000000',
  },
}
SCSS
$custom: #7852de;
$custom-light: #a684e9;
$custom-dark: #000000;
JSON
{
  "hex": "#7852de",
  "rgb": {
    "r": 120,
    "g": 82,
    "b": 222
  },
  "hsl": {
    "h": 256.286,
    "s": 67.961,
    "l": 59.608
  },
  "oklch": {
    "l": 0.55556,
    "c": 0.20279,
    "h": 290.8
  },
  "luminance": 0.15302
}

Semantic roles & 50–950 ramp

primary
#7852DE
secondary
#D2E1AB
accent
#EB3DBC
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7852DE

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

Preview Lab → · Contrast checker → · Palette generator →

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