#7858CB#7858CB

#7858CB is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.1% C 0.171 H 292.7°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#7858CB
RGBrgb(120, 88, 203)
HSLhsl(257, 53%, 57%)
HSVhsv(257, 57%, 80%)
CMYKcmyk(40.9%, 56.7%, 0%, 20.4%)
CIE-LABlab(46.02, 39.72, -55.45)
CIE-LCHlch(46.02, 68.21, 305.61°)
OKLaboklab(55.13% 0.0661 -0.1577)
OKLCHoklch(55.13% 0.171 292.7)
XYZxyz(22.0120, 15.2837, 58.2786)
Luminance0.1528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7858CB #ABCB58
analogous
#5872CB #7858CB #B258CB
triadic
#7858CB #CB7858 #58CB78
tetradic
#7858CB #CB5872 #ABCB58 #58CBB2
square
#7858CB #CB5872 #ABCB58 #58CBB2
split-complementary
#7858CB #CBB258 #72CB58
monochromatic
#412881 #5837AF #7858CB #9E87DA #C3B5E8

Accessibility & contrast

On white

5.18
#7858CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#7858CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7858CB
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7858CB#FFFFFF#000000##FFFFFF
##7858CB1.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#186FCF
Deuteranopia (green-blind)
#236BC8
Tritanopia (blue-blind)
#627189
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7858cb;
/* rgb */ color: rgb(120, 88, 203);
/* oklch */ color: oklch(55.1% 0.171 292.7);
Tailwind
colors: {
  custom: {
    50: '#a488db',
    500: '#7858cb',
    950: '#000000',
  },
}
SCSS
$custom: #7858cb;
$custom-light: #a488db;
$custom-dark: #000000;
JSON
{
  "hex": "#7858cb",
  "rgb": {
    "r": 120,
    "g": 88,
    "b": 203
  },
  "hsl": {
    "h": 256.696,
    "s": 52.511,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55127,
    "c": 0.17104,
    "h": 292.7
  },
  "luminance": 0.15284
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7858CB

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

Preview Lab → · Contrast checker → · Palette generator →

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