#7852EF#7852EF

#7852EF is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 56.9% C 0.223 H 288.3°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7852EF
RGBrgb(120, 82, 239)
HSLhsl(255, 83%, 63%)
HSVhsv(255, 66%, 94%)
CMYKcmyk(49.8%, 65.7%, 0%, 6.3%)
CIE-LABlab(47.31, 53.08, -73.83)
CIE-LCHlch(47.31, 90.93, 305.72°)
OKLaboklab(56.87% 0.0701 -0.2118)
OKLCHoklch(56.87% 0.223 288.3)
XYZxyz(26.3385, 16.2585, 83.3950)
Luminance0.1626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7852EF #C9EF52
analogous
#527BEF #7852EF #C652EF
triadic
#7852EF #EF7852 #52EF78
tetradic
#7852EF #EF527B #C9EF52 #52EFC6
square
#7852EF #EF527B #C9EF52 #52EFC6
split-complementary
#7852EF #EFC652 #7BEF52
monochromatic
#3911B6 #4C1AEA #7852EF #A48AF4 #CFC2F9

Accessibility & contrast

On white

4.94
#7852EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#7852EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7852EF
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7852EF#FFFFFF#000000##FFFFFF
##7852EF1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F4
Deuteranopia (green-blind)
#006CEC
Tritanopia (blue-blind)
#4D799A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7852ef;
/* rgb */ color: rgb(120, 82, 239);
/* oklch */ color: oklch(56.9% 0.223 288.3);
Tailwind
colors: {
  custom: {
    50: '#a885f5',
    500: '#7852ef',
    950: '#000000',
  },
}
SCSS
$custom: #7852ef;
$custom-light: #a885f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7852ef",
  "rgb": {
    "r": 120,
    "g": 82,
    "b": 239
  },
  "hsl": {
    "h": 254.522,
    "s": 83.069,
    "l": 62.941
  },
  "oklch": {
    "l": 0.5687,
    "c": 0.22307,
    "h": 288.3
  },
  "luminance": 0.1626
}

Semantic roles & 50–950 ramp

primary
#7852EF
secondary
#DDEBB2
accent
#DF06AB
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7852EF

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

Preview Lab → · Contrast checker → · Palette generator →

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