#7862CB#7862CB

#7862CB is a mid, vivid violet. Relative luminance 0.170; OKLCH L 56.8% C 0.157 H 290.2°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7862CB
RGBrgb(120, 98, 203)
HSLhsl(253, 50%, 59%)
HSVhsv(253, 52%, 80%)
CMYKcmyk(40.9%, 51.7%, 0%, 20.4%)
CIE-LABlab(48.31, 33.88, -51.78)
CIE-LCHlch(48.31, 61.88, 303.20°)
OKLaboklab(56.82% 0.0539 -0.1469)
OKLCHoklch(56.82% 0.157 290.2)
XYZxyz(22.8899, 17.0395, 58.5713)
Luminance0.1704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7862CB #B5CB62
analogous
#6281CB #7862CB #AC62CB
triadic
#7862CB #CB7862 #62CB78
tetradic
#7862CB #CB6281 #B5CB62 #62CBAC
square
#7862CB #CB6281 #B5CB62 #62CBAC
split-complementary
#7862CB #CBAC62 #81CB62
monochromatic
#3F2C86 #553CB4 #7862CB #A090DA #C7BEE9

Accessibility & contrast

On white

4.76
#7862CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#7862CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7862CB
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7862CB#FFFFFF#000000##FFFFFF
##7862CB1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3475CF
Deuteranopia (green-blind)
#3770C9
Tritanopia (blue-blind)
#61788D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7862cb;
/* rgb */ color: rgb(120, 98, 203);
/* oklch */ color: oklch(56.8% 0.157 290.2);
Tailwind
colors: {
  custom: {
    50: '#a38fdb',
    500: '#7862cb',
    950: '#000000',
  },
}
SCSS
$custom: #7862cb;
$custom-light: #a38fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#7862cb",
  "rgb": {
    "r": 120,
    "g": 98,
    "b": 203
  },
  "hsl": {
    "h": 252.571,
    "s": 50.239,
    "l": 59.02
  },
  "oklch": {
    "l": 0.56824,
    "c": 0.15651,
    "h": 290.2
  },
  "luminance": 0.1704
}

Semantic roles & 50–950 ramp

primary
#7862CB
secondary
#D0D9B0
accent
#DA4EBC
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7862CB

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

Preview Lab → · Contrast checker → · Palette generator →

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