#7852F2#7852F2

#7852F2 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.1% C 0.227 H 287.9°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7852F2
RGBrgb(120, 82, 242)
HSLhsl(254, 86%, 64%)
HSVhsv(254, 66%, 95%)
CMYKcmyk(50.4%, 66.1%, 0%, 5.1%)
CIE-LABlab(47.54, 53.92, -75.14)
CIE-LCHlch(47.54, 92.48, 305.66°)
OKLaboklab(57.11% 0.0697 -0.2156)
OKLCHoklch(57.11% 0.227 287.9)
XYZxyz(26.7853, 16.4372, 85.7485)
Luminance0.1644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7852F2 #CCF252
analogous
#527CF2 #7852F2 #C852F2
triadic
#7852F2 #F27852 #52F278
tetradic
#7852F2 #F2527C #CCF252 #52F2C8
square
#7852F2 #F2527C #CCF252 #52F2C8
split-complementary
#7852F2 #F2C852 #7CF252
monochromatic
#370EBC #4C19EE #7852F2 #A48BF6 #D1C4FB

Accessibility & contrast

On white

4.90
#7852F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#7852F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7852F2
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7852F2#FFFFFF#000000##FFFFFF
##7852F21.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F7
Deuteranopia (green-blind)
#006DEF
Tritanopia (blue-blind)
#4B7A9B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7852f2;
/* rgb */ color: rgb(120, 82, 242);
/* oklch */ color: oklch(57.1% 0.227 287.9);
Tailwind
colors: {
  custom: {
    50: '#a985f7',
    500: '#7852f2',
    950: '#000000',
  },
}
SCSS
$custom: #7852f2;
$custom-light: #a985f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7852f2",
  "rgb": {
    "r": 120,
    "g": 82,
    "b": 242
  },
  "hsl": {
    "h": 254.25,
    "s": 86.022,
    "l": 63.529
  },
  "oklch": {
    "l": 0.57108,
    "c": 0.22659,
    "h": 287.9
  },
  "luminance": 0.16438
}

Semantic roles & 50–950 ramp

primary
#7852F2
secondary
#DFECB4
accent
#E303AD
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7852F2

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

Preview Lab → · Contrast checker → · Palette generator →

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