#7858EC#7858EC

#7858EC is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.5% C 0.212 H 287.7°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#7858EC
RGBrgb(120, 88, 236)
HSLhsl(253, 80%, 64%)
HSVhsv(253, 63%, 93%)
CMYKcmyk(49.2%, 62.7%, 0%, 7.5%)
CIE-LABlab(48.29, 48.98, -70.54)
CIE-LCHlch(48.29, 85.88, 304.77°)
OKLaboklab(57.51% 0.0647 -0.2021)
OKLCHoklch(57.51% 0.212 287.7)
XYZxyz(26.3714, 17.0275, 81.2377)
Luminance0.1703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7858EC #CCEC58
analogous
#5882EC #7858EC #C258EC
triadic
#7858EC #EC7858 #58EC78
tetradic
#7858EC #EC5882 #CCEC58 #58ECC2
square
#7858EC #EC5882 #CCEC58 #58ECC2
split-complementary
#7858EC #ECC258 #82EC58
monochromatic
#3715B5 #4C21E6 #7858EC #A48FF2 #D1C6F9

Accessibility & contrast

On white

4.77
#7858EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#7858EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7858EC
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7858EC#FFFFFF#000000##FFFFFF
##7858EC1.004.774.414.77
#FFFFFF4.771.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F1
Deuteranopia (green-blind)
#006FE9
Tritanopia (blue-blind)
#4F7C9A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7858ec;
/* rgb */ color: rgb(120, 88, 236);
/* oklch */ color: oklch(57.5% 0.212 287.7);
Tailwind
colors: {
  custom: {
    50: '#a889f3',
    500: '#7858ec',
    950: '#000000',
  },
}
SCSS
$custom: #7858ec;
$custom-light: #a889f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7858ec",
  "rgb": {
    "r": 120,
    "g": 88,
    "b": 236
  },
  "hsl": {
    "h": 252.973,
    "s": 79.57,
    "l": 63.529
  },
  "oklch": {
    "l": 0.57511,
    "c": 0.2122,
    "h": 287.7
  },
  "luminance": 0.17029
}

Semantic roles & 50–950 ramp

primary
#7858EC
secondary
#DFEAB6
accent
#DC0AAE
background
#FAF8FF
surface
#F5F0FE
border
#CFCBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7858EC

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

Preview Lab → · Contrast checker → · Palette generator →

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