#7857CC#7857CC

#7857CC is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.0% C 0.174 H 292.8°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#7857CC
RGBrgb(120, 87, 204)
HSLhsl(257, 53%, 57%)
HSVhsv(257, 57%, 80%)
CMYKcmyk(41.2%, 57.4%, 0%, 20%)
CIE-LABlab(45.86, 40.57, -56.28)
CIE-LCHlch(45.86, 69.38, 305.79°)
OKLaboklab(55.03% 0.0673 -0.1602)
OKLCHoklch(55.03% 0.174 292.8)
XYZxyz(22.0501, 15.1685, 58.8811)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7857CC #ABCC57
analogous
#5771CC #7857CC #B357CC
triadic
#7857CC #CC7857 #57CC78
tetradic
#7857CC #CC5771 #ABCC57 #57CCB3
square
#7857CC #CC5771 #ABCC57 #57CCB3
split-complementary
#7857CC #CCB357 #71CC57
monochromatic
#412781 #5836B0 #7857CC #9E86DA #C3B5E9

Accessibility & contrast

On white

5.21
#7857CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#7857CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7857CC
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7857CC#FFFFFF#000000##FFFFFF
##7857CC1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#106ED0
Deuteranopia (green-blind)
#1F6AC9
Tritanopia (blue-blind)
#617089
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7857cc;
/* rgb */ color: rgb(120, 87, 204);
/* oklch */ color: oklch(55.0% 0.174 292.8);
Tailwind
colors: {
  custom: {
    50: '#a487dc',
    500: '#7857cc',
    950: '#000000',
  },
}
SCSS
$custom: #7857cc;
$custom-light: #a487dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7857cc",
  "rgb": {
    "r": 120,
    "g": 87,
    "b": 204
  },
  "hsl": {
    "h": 256.923,
    "s": 53.425,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55033,
    "c": 0.17373,
    "h": 292.8
  },
  "luminance": 0.15169
}

Semantic roles & 50–950 ramp

primary
#7857CC
secondary
#CAD7A8
accent
#DD4BB4
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7857CC

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

Preview Lab → · Contrast checker → · Palette generator →

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