#7857EC#7857EC

#7857EC is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 57.4% C 0.213 H 287.9°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#7857EC
RGBrgb(120, 87, 236)
HSLhsl(253, 80%, 63%)
HSVhsv(253, 63%, 93%)
CMYKcmyk(49.2%, 63.1%, 0%, 7.5%)
CIE-LABlab(48.09, 49.53, -70.88)
CIE-LCHlch(48.09, 86.47, 304.95°)
OKLaboklab(57.36% 0.0656 -0.2031)
OKLCHoklch(57.36% 0.213 287.9)
XYZxyz(26.2898, 16.8644, 81.2105)
Luminance0.1687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7857EC #CBEC57
analogous
#5780EC #7857EC #C357EC
triadic
#7857EC #EC7857 #57EC78
tetradic
#7857EC #EC5780 #CBEC57 #57ECC3
square
#7857EC #EC5780 #CBEC57 #57ECC3
split-complementary
#7857EC #ECC357 #80EC57
monochromatic
#3814B4 #4C20E6 #7857EC #A48EF2 #D0C5F8

Accessibility & contrast

On white

4.80
#7857EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#7857EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7857EC
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7857EC#FFFFFF#000000##FFFFFF
##7857EC1.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F1
Deuteranopia (green-blind)
#006EE9
Tritanopia (blue-blind)
#4F7B9A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7857ec;
/* rgb */ color: rgb(120, 87, 236);
/* oklch */ color: oklch(57.4% 0.213 287.9);
Tailwind
colors: {
  custom: {
    50: '#a888f3',
    500: '#7857ec',
    950: '#000000',
  },
}
SCSS
$custom: #7857ec;
$custom-light: #a888f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7857ec",
  "rgb": {
    "r": 120,
    "g": 87,
    "b": 236
  },
  "hsl": {
    "h": 253.289,
    "s": 79.679,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57361,
    "c": 0.21344,
    "h": 287.9
  },
  "luminance": 0.16866
}

Semantic roles & 50–950 ramp

primary
#7857EC
secondary
#DEEAB5
accent
#DC0AAD
background
#FAF8FF
surface
#F5F0FE
border
#CFCBD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7857EC

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

Preview Lab → · Contrast checker → · Palette generator →

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