#7858DB#7858DB

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

Color values

HEX#7858DB
RGBrgb(120, 88, 219)
HSLhsl(255, 65%, 60%)
HSVhsv(255, 60%, 86%)
CMYKcmyk(45.2%, 59.8%, 0%, 14.1%)
CIE-LABlab(47.09, 44.18, -62.89)
CIE-LCHlch(47.09, 76.86, 305.09°)
OKLaboklab(56.25% 0.0658 -0.1796)
OKLCHoklch(56.25% 0.191 290.1)
XYZxyz(24.0180, 16.0861, 68.8435)
Luminance0.1609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7858DB #BBDB58
analogous
#587ADB #7858DB #B958DB
triadic
#7858DB #DB7858 #58DB78
tetradic
#7858DB #DB587A #BBDB58 #58DBB9
square
#7858DB #DB587A #BBDB58 #58DBB9
split-complementary
#7858DB #DBB958 #7ADB58
monochromatic
#3E2198 #522CCA #7858DB #A18AE6 #C9BDF1

Accessibility & contrast

On white

4.98
#7858DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7858DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7858DB
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7858DB#FFFFFF#000000##FFFFFF
##7858DB1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#006DD8
Tritanopia (blue-blind)
#5A7691
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7858db;
/* rgb */ color: rgb(120, 88, 219);
/* oklch */ color: oklch(56.3% 0.191 290.1);
Tailwind
colors: {
  custom: {
    50: '#a688e7',
    500: '#7858db',
    950: '#000000',
  },
}
SCSS
$custom: #7858db;
$custom-light: #a688e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7858db",
  "rgb": {
    "r": 120,
    "g": 88,
    "b": 219
  },
  "hsl": {
    "h": 254.656,
    "s": 64.532,
    "l": 60.196
  },
  "oklch": {
    "l": 0.5625,
    "c": 0.19126,
    "h": 290.1
  },
  "luminance": 0.16087
}

Semantic roles & 50–950 ramp

primary
#7858DB
secondary
#D4E1AE
accent
#CC19A1
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7858DB

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

Preview Lab → · Contrast checker → · Palette generator →

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