#7852ED#7852ED

#7852ED is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.7% C 0.221 H 288.6°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7852ED
RGBrgb(120, 82, 237)
HSLhsl(255, 81%, 63%)
HSVhsv(255, 65%, 93%)
CMYKcmyk(49.4%, 65.4%, 0%, 7.1%)
CIE-LABlab(47.16, 52.52, -72.95)
CIE-LCHlch(47.16, 89.90, 305.75°)
OKLaboklab(56.71% 0.0704 -0.2092)
OKLCHoklch(56.71% 0.221 288.6)
XYZxyz(26.0446, 16.1409, 81.8475)
Luminance0.1614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7852ED #C7ED52
analogous
#5279ED #7852ED #C652ED
triadic
#7852ED #ED7852 #52ED78
tetradic
#7852ED #ED5279 #C7ED52 #52EDC6
square
#7852ED #ED5279 #C7ED52 #52EDC6
split-complementary
#7852ED #EDC652 #79ED52
monochromatic
#3A13B2 #4D1BE7 #7852ED #A389F3 #CFC1F9

Accessibility & contrast

On white

4.97
#7852ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7852ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7852ED
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7852ED#FFFFFF#000000##FFFFFF
##7852ED1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F2
Deuteranopia (green-blind)
#006CEA
Tritanopia (blue-blind)
#4F7899
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7852ed;
/* rgb */ color: rgb(120, 82, 237);
/* oklch */ color: oklch(56.7% 0.221 288.6);
Tailwind
colors: {
  custom: {
    50: '#a885f4',
    500: '#7852ed',
    950: '#000000',
  },
}
SCSS
$custom: #7852ed;
$custom-light: #a885f4;
$custom-dark: #000000;
JSON
{
  "hex": "#7852ed",
  "rgb": {
    "r": 120,
    "g": 82,
    "b": 237
  },
  "hsl": {
    "h": 254.71,
    "s": 81.152,
    "l": 62.549
  },
  "oklch": {
    "l": 0.56712,
    "c": 0.22071,
    "h": 288.6
  },
  "luminance": 0.16142
}

Semantic roles & 50–950 ramp

primary
#7852ED
secondary
#DCEAB1
accent
#DE08A9
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7852ED

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

Preview Lab → · Contrast checker → · Palette generator →

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