#7857DB#7857DB

#7857DB is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.1% C 0.193 H 290.3°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7857DB
RGBrgb(120, 87, 219)
HSLhsl(255, 65%, 60%)
HSVhsv(255, 60%, 86%)
CMYKcmyk(45.2%, 60.3%, 0%, 14.1%)
CIE-LABlab(46.87, 44.74, -63.23)
CIE-LCHlch(46.87, 77.46, 305.28°)
OKLaboklab(56.09% 0.0669 -0.1806)
OKLCHoklch(56.09% 0.193 290.3)
XYZxyz(23.9365, 15.9231, 68.8164)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7857DB #BADB57
analogous
#5778DB #7857DB #BA57DB
triadic
#7857DB #DB7857 #57DB78
tetradic
#7857DB #DB5778 #BADB57 #57DBBA
square
#7857DB #DB5778 #BADB57 #57DBBA
split-complementary
#7857DB #DBBA57 #78DB57
monochromatic
#3E2097 #532BCA #7857DB #A089E6 #C9BCF1

Accessibility & contrast

On white

5.02
#7857DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#7857DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7857DB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7857DB#FFFFFF#000000##FFFFFF
##7857DB1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#006CD8
Tritanopia (blue-blind)
#5A7591
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7857db;
/* rgb */ color: rgb(120, 87, 219);
/* oklch */ color: oklch(56.1% 0.193 290.3);
Tailwind
colors: {
  custom: {
    50: '#a688e7',
    500: '#7857db',
    950: '#000000',
  },
}
SCSS
$custom: #7857db;
$custom-light: #a688e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7857db",
  "rgb": {
    "r": 120,
    "g": 87,
    "b": 219
  },
  "hsl": {
    "h": 255,
    "s": 64.706,
    "l": 60
  },
  "oklch": {
    "l": 0.56093,
    "c": 0.1926,
    "h": 290.3
  },
  "luminance": 0.15924
}

Semantic roles & 50–950 ramp

primary
#7857DB
secondary
#D4E0AD
accent
#E840BE
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7857DB

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

Preview Lab → · Contrast checker → · Palette generator →

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