#7857E8#7857E8

#7857E8 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.1% C 0.209 H 288.4°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#7857E8
RGBrgb(120, 87, 232)
HSLhsl(254, 76%, 63%)
HSVhsv(254, 63%, 91%)
CMYKcmyk(48.3%, 62.5%, 0%, 9%)
CIE-LABlab(47.80, 48.40, -69.10)
CIE-LCHlch(47.80, 84.37, 305.01°)
OKLaboklab(57.06% 0.066 -0.1979)
OKLCHoklch(57.06% 0.209 288.4)
XYZxyz(25.7152, 16.6346, 78.1841)
Luminance0.1664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7857E8 #C7E857
analogous
#577FE8 #7857E8 #C057E8
triadic
#7857E8 #E87857 #57E878
tetradic
#7857E8 #E8577F #C7E857 #57E8C0
square
#7857E8 #E8577F #C7E857 #57E8C0
split-complementary
#7857E8 #E8C057 #7FE857
monochromatic
#3A18AD #4D21E1 #7857E8 #A38DEF #CFC3F7

Accessibility & contrast

On white

4.85
#7857E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#7857E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7857E8
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7857E8#FFFFFF#000000##FFFFFF
##7857E81.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075ED
Deuteranopia (green-blind)
#006EE5
Tritanopia (blue-blind)
#527A98
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7857e8;
/* rgb */ color: rgb(120, 87, 232);
/* oklch */ color: oklch(57.1% 0.209 288.4);
Tailwind
colors: {
  custom: {
    50: '#a788f0',
    500: '#7857e8',
    950: '#000000',
  },
}
SCSS
$custom: #7857e8;
$custom-light: #a788f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7857e8",
  "rgb": {
    "r": 120,
    "g": 87,
    "b": 232
  },
  "hsl": {
    "h": 253.655,
    "s": 75.916,
    "l": 62.549
  },
  "oklch": {
    "l": 0.57057,
    "c": 0.20859,
    "h": 288.4
  },
  "luminance": 0.16636
}

Semantic roles & 50–950 ramp

primary
#7857E8
secondary
#DCE8B3
accent
#D80DAA
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7857E8

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

Preview Lab → · Contrast checker → · Palette generator →

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