#7857DC#7857DC

#7857DC is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.2% C 0.194 H 290.2°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7857DC
RGBrgb(120, 87, 220)
HSLhsl(255, 66%, 60%)
HSVhsv(255, 60%, 86%)
CMYKcmyk(45.5%, 60.5%, 0%, 13.7%)
CIE-LABlab(46.94, 45.02, -63.69)
CIE-LCHlch(46.94, 78.00, 305.26°)
OKLaboklab(56.17% 0.0668 -0.182)
OKLCHoklch(56.17% 0.194 290.2)
XYZxyz(24.0685, 15.9759, 69.5118)
Luminance0.1598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7857DC #BBDC57
analogous
#5779DC #7857DC #BA57DC
triadic
#7857DC #DC7857 #57DC78
tetradic
#7857DC #DC5779 #BBDC57 #57DCBA
square
#7857DC #DC5779 #BBDC57 #57DCBA
split-complementary
#7857DC #DCBA57 #79DC57
monochromatic
#3E2099 #522ACB #7857DC #A18AE7 #C9BCF1

Accessibility & contrast

On white

5.01
#7857DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#7857DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7857DC
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7857DC#FFFFFF#000000##FFFFFF
##7857DC1.005.014.205.01
#FFFFFF5.011.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E0
Deuteranopia (green-blind)
#006CD9
Tritanopia (blue-blind)
#597691
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7857dc;
/* rgb */ color: rgb(120, 87, 220);
/* oklch */ color: oklch(56.2% 0.194 290.2);
Tailwind
colors: {
  custom: {
    50: '#a688e8',
    500: '#7857dc',
    950: '#000000',
  },
}
SCSS
$custom: #7857dc;
$custom-light: #a688e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7857dc",
  "rgb": {
    "r": 120,
    "g": 87,
    "b": 220
  },
  "hsl": {
    "h": 254.887,
    "s": 65.517,
    "l": 60.196
  },
  "oklch": {
    "l": 0.56166,
    "c": 0.19384,
    "h": 290.2
  },
  "luminance": 0.15977
}

Semantic roles & 50–950 ramp

primary
#7857DC
secondary
#D4E1AE
accent
#CD18A0
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7857DC

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

Preview Lab → · Contrast checker → · Palette generator →

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