#7857CB#7857CB

#7857CB is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.0% C 0.172 H 293.0°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#7857CB
RGBrgb(120, 87, 203)
HSLhsl(257, 53%, 57%)
HSVhsv(257, 57%, 80%)
CMYKcmyk(40.9%, 57.1%, 0%, 20.4%)
CIE-LABlab(45.80, 40.30, -55.81)
CIE-LCHlch(45.80, 68.84, 305.83°)
OKLaboklab(54.96% 0.0673 -0.1588)
OKLCHoklch(54.96% 0.172 293)
XYZxyz(21.9305, 15.1207, 58.2515)
Luminance0.1512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7857CB #AACB57
analogous
#5770CB #7857CB #B257CB
triadic
#7857CB #CB7857 #57CB78
tetradic
#7857CB #CB5770 #AACB57 #57CBB2
square
#7857CB #CB5770 #AACB57 #57CBB2
split-complementary
#7857CB #CBB257 #70CB57
monochromatic
#412880 #5836AF #7857CB #9E86D9 #C3B4E8

Accessibility & contrast

On white

5.22
#7857CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#7857CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7857CB
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7857CB#FFFFFF#000000##FFFFFF
##7857CB1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#136ECF
Deuteranopia (green-blind)
#216AC8
Tritanopia (blue-blind)
#627089
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7857cb;
/* rgb */ color: rgb(120, 87, 203);
/* oklch */ color: oklch(55.0% 0.172 293.0);
Tailwind
colors: {
  custom: {
    50: '#a487db',
    500: '#7857cb',
    950: '#000000',
  },
}
SCSS
$custom: #7857cb;
$custom-light: #a487db;
$custom-dark: #000000;
JSON
{
  "hex": "#7857cb",
  "rgb": {
    "r": 120,
    "g": 87,
    "b": 203
  },
  "hsl": {
    "h": 257.069,
    "s": 52.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.54964,
    "c": 0.17246,
    "h": 293
  },
  "luminance": 0.15121
}

Semantic roles & 50–950 ramp

primary
#7857CB
secondary
#C9D7A7
accent
#DC4CB3
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7857CB

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

Preview Lab → · Contrast checker → · Palette generator →

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