#7857F2#7857F2

#7857F2 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 57.8% C 0.221 H 287.1°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#7857F2
RGBrgb(120, 87, 242)
HSLhsl(253, 86%, 65%)
HSVhsv(253, 64%, 95%)
CMYKcmyk(50.4%, 64%, 0%, 5.1%)
CIE-LABlab(48.53, 51.23, -73.52)
CIE-LCHlch(48.53, 89.61, 304.87°)
OKLaboklab(57.82% 0.065 -0.2109)
OKLCHoklch(57.82% 0.221 287.1)
XYZxyz(27.1762, 17.2190, 85.8788)
Luminance0.1722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7857F2 #D1F257
analogous
#5784F2 #7857F2 #C557F2
triadic
#7857F2 #F27857 #57F278
tetradic
#7857F2 #F25784 #D1F257 #57F2C5
square
#7857F2 #F25784 #D1F257 #57F2C5
split-complementary
#7857F2 #F2C557 #84F257
monochromatic
#350FC0 #4A1EEE #7857F2 #A690F6 #D3C9FB

Accessibility & contrast

On white

4.73
#7857F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#7857F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7857F2
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7857F2#FFFFFF#000000##FFFFFF
##7857F21.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F7
Deuteranopia (green-blind)
#006FEF
Tritanopia (blue-blind)
#4B7D9D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7857f2;
/* rgb */ color: rgb(120, 87, 242);
/* oklch */ color: oklch(57.8% 0.221 287.1);
Tailwind
colors: {
  custom: {
    50: '#a888f7',
    500: '#7857f2',
    950: '#000000',
  },
}
SCSS
$custom: #7857f2;
$custom-light: #a888f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7857f2",
  "rgb": {
    "r": 120,
    "g": 87,
    "b": 242
  },
  "hsl": {
    "h": 252.774,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.57824,
    "c": 0.22066,
    "h": 287.1
  },
  "luminance": 0.1722
}

Semantic roles & 50–950 ramp

primary
#7857F2
secondary
#E2EDB8
accent
#E203B3
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7857F2

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

Preview Lab → · Contrast checker → · Palette generator →

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