#7857E4#7857E4

#7857E4 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 56.8% C 0.204 H 289.0°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7857E4
RGBrgb(120, 87, 228)
HSLhsl(254, 72%, 62%)
HSVhsv(254, 62%, 89%)
CMYKcmyk(47.4%, 61.8%, 0%, 10.6%)
CIE-LABlab(47.51, 47.27, -67.31)
CIE-LCHlch(47.51, 82.25, 305.08°)
OKLaboklab(56.76% 0.0663 -0.1926)
OKLCHoklch(56.76% 0.204 289)
XYZxyz(25.1535, 16.4099, 75.2258)
Luminance0.1641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7857E4 #C3E457
analogous
#577CE4 #7857E4 #BF57E4
triadic
#7857E4 #E47857 #57E478
tetradic
#7857E4 #E4577C #C3E457 #57E4BF
square
#7857E4 #E4577C #C3E457 #57E4BF
split-complementary
#7857E4 #E4BF57 #7CE457
monochromatic
#3B1BA6 #4E23DB #7857E4 #A28CEC #CDC0F5

Accessibility & contrast

On white

4.90
#7857E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#7857E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7857E4
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7857E4#FFFFFF#000000##FFFFFF
##7857E41.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E8
Deuteranopia (green-blind)
#006DE1
Tritanopia (blue-blind)
#557895
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7857e4;
/* rgb */ color: rgb(120, 87, 228);
/* oklch */ color: oklch(56.8% 0.204 289.0);
Tailwind
colors: {
  custom: {
    50: '#a788ed',
    500: '#7857e4',
    950: '#000000',
  },
}
SCSS
$custom: #7857e4;
$custom-light: #a788ed;
$custom-dark: #000000;
JSON
{
  "hex": "#7857e4",
  "rgb": {
    "r": 120,
    "g": 87,
    "b": 228
  },
  "hsl": {
    "h": 254.043,
    "s": 72.308,
    "l": 61.765
  },
  "oklch": {
    "l": 0.56756,
    "c": 0.2037,
    "h": 289
  },
  "luminance": 0.16411
}

Semantic roles & 50–950 ramp

primary
#7857E4
secondary
#D9E6B1
accent
#D411A7
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7857E4

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

Preview Lab → · Contrast checker → · Palette generator →

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