#7852EB#7852EB

#7852EB is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.6% C 0.218 H 288.9°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7852EB
RGBrgb(120, 82, 235)
HSLhsl(255, 79%, 62%)
HSVhsv(255, 65%, 92%)
CMYKcmyk(48.9%, 65.1%, 0%, 7.8%)
CIE-LABlab(47.01, 51.97, -72.08)
CIE-LCHlch(47.01, 88.86, 305.79°)
OKLaboklab(56.56% 0.0706 -0.2066)
OKLCHoklch(56.56% 0.218 288.9)
XYZxyz(25.7541, 16.0247, 80.3172)
Luminance0.1603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7852EB #C5EB52
analogous
#5279EB #7852EB #C552EB
triadic
#7852EB #EB7852 #52EB78
tetradic
#7852EB #EB5279 #C5EB52 #52EBC5
square
#7852EB #EB5279 #C5EB52 #52EBC5
split-complementary
#7852EB #EBC552 #79EB52
monochromatic
#3A14AE #4D1BE5 #7852EB #A389F1 #CEC0F8

Accessibility & contrast

On white

4.99
#7852EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#7852EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7852EB
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7852EB#FFFFFF#000000##FFFFFF
##7852EB1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F0
Deuteranopia (green-blind)
#006CE8
Tritanopia (blue-blind)
#507897
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7852eb;
/* rgb */ color: rgb(120, 82, 235);
/* oklch */ color: oklch(56.6% 0.218 288.9);
Tailwind
colors: {
  custom: {
    50: '#a885f2',
    500: '#7852eb',
    950: '#000000',
  },
}
SCSS
$custom: #7852eb;
$custom-light: #a885f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7852eb",
  "rgb": {
    "r": 120,
    "g": 82,
    "b": 235
  },
  "hsl": {
    "h": 254.902,
    "s": 79.275,
    "l": 62.157
  },
  "oklch": {
    "l": 0.56555,
    "c": 0.21835,
    "h": 288.9
  },
  "luminance": 0.16026
}

Semantic roles & 50–950 ramp

primary
#7852EB
secondary
#DBE8B0
accent
#DC0AA8
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7852EB

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

Preview Lab → · Contrast checker → · Palette generator →

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