#7858CC#7858CC

#7858CC is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.2% C 0.172 H 292.6°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#7858CC
RGBrgb(120, 88, 204)
HSLhsl(257, 53%, 57%)
HSVhsv(257, 57%, 80%)
CMYKcmyk(41.2%, 56.9%, 0%, 20%)
CIE-LABlab(46.08, 40.00, -55.92)
CIE-LCHlch(46.08, 68.76, 305.57°)
OKLaboklab(55.2% 0.0661 -0.1591)
OKLCHoklch(55.2% 0.172 292.6)
XYZxyz(22.1316, 15.3315, 58.9083)
Luminance0.1533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7858CC #ACCC58
analogous
#5872CC #7858CC #B258CC
triadic
#7858CC #CC7858 #58CC78
tetradic
#7858CC #CC5872 #ACCC58 #58CCB2
square
#7858CC #CC5872 #ACCC58 #58CCB2
split-complementary
#7858CC #CCB258 #72CC58
monochromatic
#412882 #5836B1 #7858CC #9E87DA #C4B6E9

Accessibility & contrast

On white

5.16
#7858CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#7858CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7858CC
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7858CC#FFFFFF#000000##FFFFFF
##7858CC1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#156FD0
Deuteranopia (green-blind)
#216BC9
Tritanopia (blue-blind)
#617189
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7858cc;
/* rgb */ color: rgb(120, 88, 204);
/* oklch */ color: oklch(55.2% 0.172 292.6);
Tailwind
colors: {
  custom: {
    50: '#a488dc',
    500: '#7858cc',
    950: '#000000',
  },
}
SCSS
$custom: #7858cc;
$custom-light: #a488dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7858cc",
  "rgb": {
    "r": 120,
    "g": 88,
    "b": 204
  },
  "hsl": {
    "h": 256.552,
    "s": 53.211,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55195,
    "c": 0.17231,
    "h": 292.6
  },
  "luminance": 0.15332
}

Semantic roles & 50–950 ramp

primary
#7858CC
secondary
#CAD7A8
accent
#DD4BB4
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7858CC

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

Preview Lab → · Contrast checker → · Palette generator →

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