#7858F2#7858F2

#7858F2 is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 58.0% C 0.219 H 287.0°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#7858F2
RGBrgb(120, 88, 242)
HSLhsl(252, 86%, 65%)
HSVhsv(252, 64%, 95%)
CMYKcmyk(50.4%, 63.6%, 0%, 5.1%)
CIE-LABlab(48.74, 50.68, -73.19)
CIE-LCHlch(48.74, 89.03, 304.70°)
OKLaboklab(57.97% 0.0641 -0.2099)
OKLCHoklch(57.97% 0.219 287)
XYZxyz(27.2577, 17.3820, 85.9060)
Luminance0.1738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7858F2 #D2F258
analogous
#5885F2 #7858F2 #C558F2
triadic
#7858F2 #F27858 #58F278
tetradic
#7858F2 #F25885 #D2F258 #58F2C5
square
#7858F2 #F25885 #D2F258 #58F2C5
split-complementary
#7858F2 #F2C558 #85F258
monochromatic
#340FC1 #4A1FEE #7858F2 #A691F6 #D4CAFB

Accessibility & contrast

On white

4.69
#7858F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#7858F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7858F2
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7858F2#FFFFFF#000000##FFFFFF
##7858F21.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F7
Deuteranopia (green-blind)
#006FEF
Tritanopia (blue-blind)
#4B7E9D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7858f2;
/* rgb */ color: rgb(120, 88, 242);
/* oklch */ color: oklch(58.0% 0.219 287.0);
Tailwind
colors: {
  custom: {
    50: '#a889f7',
    500: '#7858f2',
    950: '#000000',
  },
}
SCSS
$custom: #7858f2;
$custom-light: #a889f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7858f2",
  "rgb": {
    "r": 120,
    "g": 88,
    "b": 242
  },
  "hsl": {
    "h": 252.468,
    "s": 85.556,
    "l": 64.706
  },
  "oklch": {
    "l": 0.57971,
    "c": 0.21946,
    "h": 287
  },
  "luminance": 0.17383
}

Semantic roles & 50–950 ramp

primary
#7858F2
secondary
#E2EDB8
accent
#E203B4
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7858F2

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

Preview Lab → · Contrast checker → · Palette generator →

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