#7858DC#7858DC

#7858DC is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.3% C 0.193 H 290.0°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7858DC
RGBrgb(120, 88, 220)
HSLhsl(255, 65%, 60%)
HSVhsv(255, 60%, 86%)
CMYKcmyk(45.5%, 60%, 0%, 13.7%)
CIE-LABlab(47.16, 44.46, -63.34)
CIE-LCHlch(47.16, 77.39, 305.07°)
OKLaboklab(56.32% 0.0657 -0.1809)
OKLCHoklch(56.32% 0.193 290)
XYZxyz(24.1501, 16.1389, 69.5389)
Luminance0.1614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7858DC #BCDC58
analogous
#587ADC #7858DC #BA58DC
triadic
#7858DC #DC7858 #58DC78
tetradic
#7858DC #DC587A #BCDC58 #58DCBA
square
#7858DC #DC587A #BCDC58 #58DCBA
split-complementary
#7858DC #DCBA58 #7ADC58
monochromatic
#3E2099 #522BCC #7858DC #A18BE7 #CABDF1

Accessibility & contrast

On white

4.97
#7858DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7858DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7858DC
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7858DC#FFFFFF#000000##FFFFFF
##7858DC1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E0
Deuteranopia (green-blind)
#006DD9
Tritanopia (blue-blind)
#597692
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7858dc;
/* rgb */ color: rgb(120, 88, 220);
/* oklch */ color: oklch(56.3% 0.193 290.0);
Tailwind
colors: {
  custom: {
    50: '#a688e8',
    500: '#7858dc',
    950: '#000000',
  },
}
SCSS
$custom: #7858dc;
$custom-light: #a688e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7858dc",
  "rgb": {
    "r": 120,
    "g": 88,
    "b": 220
  },
  "hsl": {
    "h": 254.545,
    "s": 65.347,
    "l": 60.392
  },
  "oklch": {
    "l": 0.56322,
    "c": 0.19251,
    "h": 290
  },
  "luminance": 0.1614
}

Semantic roles & 50–950 ramp

primary
#7858DC
secondary
#D5E1AF
accent
#CD18A1
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7858DC

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

Preview Lab → · Contrast checker → · Palette generator →

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