#7858CD#7858CD

#7858CD is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.3% C 0.174 H 292.4°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#7858CD
RGBrgb(120, 88, 205)
HSLhsl(256, 54%, 57%)
HSVhsv(256, 57%, 80%)
CMYKcmyk(41.5%, 57.1%, 0%, 19.6%)
CIE-LABlab(46.15, 40.27, -56.40)
CIE-LCHlch(46.15, 69.30, 305.53°)
OKLaboklab(55.26% 0.0661 -0.1605)
OKLCHoklch(55.26% 0.174 292.4)
XYZxyz(22.2519, 15.3797, 59.5419)
Luminance0.1538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7858CD #ADCD58
analogous
#5873CD #7858CD #B258CD
triadic
#7858CD #CD7858 #58CD78
tetradic
#7858CD #CD5873 #ADCD58 #58CDB2
square
#7858CD #CD5873 #ADCD58 #58CDB2
split-complementary
#7858CD #CDB258 #73CD58
monochromatic
#402783 #5835B2 #7858CD #9E87DB #C4B6E9

Accessibility & contrast

On white

5.15
#7858CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#7858CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7858CD
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7858CD#FFFFFF#000000##FFFFFF
##7858CD1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#126FD1
Deuteranopia (green-blind)
#1F6BCA
Tritanopia (blue-blind)
#61718A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7858cd;
/* rgb */ color: rgb(120, 88, 205);
/* oklch */ color: oklch(55.3% 0.174 292.4);
Tailwind
colors: {
  custom: {
    50: '#a488dd',
    500: '#7858cd',
    950: '#000000',
  },
}
SCSS
$custom: #7858cd;
$custom-light: #a488dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7858cd",
  "rgb": {
    "r": 120,
    "g": 88,
    "b": 205
  },
  "hsl": {
    "h": 256.41,
    "s": 53.917,
    "l": 57.451
  },
  "oklch": {
    "l": 0.55264,
    "c": 0.17359,
    "h": 292.4
  },
  "luminance": 0.1538
}

Semantic roles & 50–950 ramp

primary
#7858CD
secondary
#CBD8A9
accent
#DD4BB5
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7858CD

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

Preview Lab → · Contrast checker → · Palette generator →

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