#7858EB#7858EB

#7858EB is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.4% C 0.211 H 287.9°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#7858EB
RGBrgb(120, 88, 235)
HSLhsl(253, 79%, 63%)
HSVhsv(253, 63%, 92%)
CMYKcmyk(48.9%, 62.6%, 0%, 7.8%)
CIE-LABlab(48.22, 48.70, -70.10)
CIE-LCHlch(48.22, 85.36, 304.79°)
OKLaboklab(57.44% 0.0647 -0.2008)
OKLCHoklch(57.44% 0.211 287.9)
XYZxyz(26.2265, 16.9695, 80.4747)
Luminance0.1697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7858EB #CBEB58
analogous
#5881EB #7858EB #C158EB
triadic
#7858EB #EB7858 #58EB78
tetradic
#7858EB #EB5881 #CBEB58 #58EBC1
square
#7858EB #EB5881 #CBEB58 #58EBC1
split-complementary
#7858EB #EBC158 #81EB58
monochromatic
#3815B3 #4C21E4 #7858EB #A48FF2 #D0C5F8

Accessibility & contrast

On white

4.78
#7858EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#7858EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7858EB
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7858EB#FFFFFF#000000##FFFFFF
##7858EB1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F0
Deuteranopia (green-blind)
#006FE8
Tritanopia (blue-blind)
#507B99
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7858eb;
/* rgb */ color: rgb(120, 88, 235);
/* oklch */ color: oklch(57.4% 0.211 287.9);
Tailwind
colors: {
  custom: {
    50: '#a889f2',
    500: '#7858eb',
    950: '#000000',
  },
}
SCSS
$custom: #7858eb;
$custom-light: #a889f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7858eb",
  "rgb": {
    "r": 120,
    "g": 88,
    "b": 235
  },
  "hsl": {
    "h": 253.061,
    "s": 78.61,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57435,
    "c": 0.21099,
    "h": 287.9
  },
  "luminance": 0.16971
}

Semantic roles & 50–950 ramp

primary
#7858EB
secondary
#DEEAB5
accent
#DB0BAE
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7858EB

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

Preview Lab → · Contrast checker → · Palette generator →

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