#7852E8#7852E8

#7852E8 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.3% C 0.215 H 289.3°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7852E8
RGBrgb(120, 82, 232)
HSLhsl(255, 77%, 62%)
HSVhsv(255, 65%, 91%)
CMYKcmyk(48.3%, 64.7%, 0%, 9%)
CIE-LABlab(46.78, 51.13, -70.75)
CIE-LCHlch(46.78, 87.29, 305.86°)
OKLaboklab(56.32% 0.071 -0.2027)
OKLCHoklch(56.32% 0.215 289.3)
XYZxyz(25.3243, 15.8528, 78.0538)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7852E8 #C2E852
analogous
#5277E8 #7852E8 #C352E8
triadic
#7852E8 #E87852 #52E878
tetradic
#7852E8 #E85277 #C2E852 #52E8C3
square
#7852E8 #E85277 #C2E852 #52E8C3
split-complementary
#7852E8 #E8C352 #77E852
monochromatic
#3C16A9 #4F1EDF #7852E8 #A288EF #CCBEF6

Accessibility & contrast

On white

5.04
#7852E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7852E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7852E8
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7852E8#FFFFFF#000000##FFFFFF
##7852E81.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072ED
Deuteranopia (green-blind)
#006BE5
Tritanopia (blue-blind)
#527796
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7852e8;
/* rgb */ color: rgb(120, 82, 232);
/* oklch */ color: oklch(56.3% 0.215 289.3);
Tailwind
colors: {
  custom: {
    50: '#a885f0',
    500: '#7852e8',
    950: '#000000',
  },
}
SCSS
$custom: #7852e8;
$custom-light: #a885f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7852e8",
  "rgb": {
    "r": 120,
    "g": 82,
    "b": 232
  },
  "hsl": {
    "h": 255.2,
    "s": 76.531,
    "l": 61.569
  },
  "oklch": {
    "l": 0.56321,
    "c": 0.21479,
    "h": 289.3
  },
  "luminance": 0.15854
}

Semantic roles & 50–950 ramp

primary
#7852E8
secondary
#D9E7AF
accent
#D90DA5
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7852E8

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

Preview Lab → · Contrast checker → · Palette generator →

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