#7857E6#7857E6

#7857E6 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 56.9% C 0.206 H 288.7°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#7857E6
RGBrgb(120, 87, 230)
HSLhsl(254, 74%, 62%)
HSVhsv(254, 62%, 90%)
CMYKcmyk(47.8%, 62.2%, 0%, 9.8%)
CIE-LABlab(47.65, 47.84, -68.21)
CIE-LCHlch(47.65, 83.31, 305.04°)
OKLaboklab(56.91% 0.0662 -0.1952)
OKLCHoklch(56.91% 0.206 288.7)
XYZxyz(25.4327, 16.5216, 76.6965)
Luminance0.1652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7857E6 #C5E657
analogous
#577EE6 #7857E6 #BF57E6
triadic
#7857E6 #E67857 #57E678
tetradic
#7857E6 #E6577E #C5E657 #57E6BF
square
#7857E6 #E6577E #C5E657 #57E6BF
split-complementary
#7857E6 #E6BF57 #7EE657
monochromatic
#3A19A9 #4D22DE #7857E6 #A38CEE #CEC2F6

Accessibility & contrast

On white

4.88
#7857E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#7857E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7857E6
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7857E6#FFFFFF#000000##FFFFFF
##7857E61.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EB
Deuteranopia (green-blind)
#006DE3
Tritanopia (blue-blind)
#537997
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7857e6;
/* rgb */ color: rgb(120, 87, 230);
/* oklch */ color: oklch(56.9% 0.206 288.7);
Tailwind
colors: {
  custom: {
    50: '#a788ef',
    500: '#7857e6',
    950: '#000000',
  },
}
SCSS
$custom: #7857e6;
$custom-light: #a788ef;
$custom-dark: #000000;
JSON
{
  "hex": "#7857e6",
  "rgb": {
    "r": 120,
    "g": 87,
    "b": 230
  },
  "hsl": {
    "h": 253.846,
    "s": 74.093,
    "l": 62.157
  },
  "oklch": {
    "l": 0.56906,
    "c": 0.20615,
    "h": 288.7
  },
  "luminance": 0.16523
}

Semantic roles & 50–950 ramp

primary
#7857E6
secondary
#DBE7B2
accent
#D60FA8
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7857E6

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

Preview Lab → · Contrast checker → · Palette generator →

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