#7858EF#7858EF

#7858EF is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 57.7% C 0.216 H 287.4°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#7858EF
RGBrgb(120, 88, 239)
HSLhsl(253, 83%, 64%)
HSVhsv(253, 63%, 94%)
CMYKcmyk(49.8%, 63.2%, 0%, 6.3%)
CIE-LABlab(48.52, 49.83, -71.87)
CIE-LCHlch(48.52, 87.46, 304.74°)
OKLaboklab(57.74% 0.0644 -0.206)
OKLCHoklch(57.74% 0.216 287.4)
XYZxyz(26.8109, 17.2033, 83.5525)
Luminance0.1721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7858EF #CFEF58
analogous
#5884EF #7858EF #C458EF
triadic
#7858EF #EF7858 #58EF78
tetradic
#7858EF #EF5884 #CFEF58 #58EFC4
square
#7858EF #EF5884 #CFEF58 #58EFC4
split-complementary
#7858EF #EFC458 #84EF58
monochromatic
#3612BB #4B20EA #7858EF #A590F4 #D2C8FA

Accessibility & contrast

On white

4.73
#7858EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#7858EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7858EF
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7858EF#FFFFFF#000000##FFFFFF
##7858EF1.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)
#0077F4
Deuteranopia (green-blind)
#006FEC
Tritanopia (blue-blind)
#4D7D9C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7858ef;
/* rgb */ color: rgb(120, 88, 239);
/* oklch */ color: oklch(57.7% 0.216 287.4);
Tailwind
colors: {
  custom: {
    50: '#a889f5',
    500: '#7858ef',
    950: '#000000',
  },
}
SCSS
$custom: #7858ef;
$custom-light: #a889f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7858ef",
  "rgb": {
    "r": 120,
    "g": 88,
    "b": 239
  },
  "hsl": {
    "h": 252.715,
    "s": 82.514,
    "l": 64.118
  },
  "oklch": {
    "l": 0.5774,
    "c": 0.21584,
    "h": 287.4
  },
  "luminance": 0.17205
}

Semantic roles & 50–950 ramp

primary
#7858EF
secondary
#E1ECB7
accent
#DF07B1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7858EF

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

Preview Lab → · Contrast checker → · Palette generator →

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