#7862DC#7862DC

#7862DC is a mid, vivid violet. Relative luminance 0.179; OKLCH L 57.9% C 0.179 H 287.8°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7862DC
RGBrgb(120, 98, 220)
HSLhsl(251, 64%, 62%)
HSVhsv(251, 55%, 86%)
CMYKcmyk(45.5%, 55.5%, 0%, 13.7%)
CIE-LABlab(49.37, 38.72, -59.77)
CIE-LCHlch(49.37, 71.22, 302.93°)
OKLaboklab(57.95% 0.0546 -0.1704)
OKLCHoklch(57.95% 0.179 287.8)
XYZxyz(25.0280, 17.8947, 69.8316)
Luminance0.1790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7862DC #C6DC62
analogous
#6289DC #7862DC #B562DC
triadic
#7862DC #DC7862 #62DC78
tetradic
#7862DC #DC6289 #C6DC62 #62DCB5
square
#7862DC #DC6289 #C6DC62 #62DCB5
split-complementary
#7862DC #DCB562 #89DC62
monochromatic
#3A24A0 #4D30D1 #7862DC #A394E7 #CEC6F2

Accessibility & contrast

On white

4.59
#7862DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#7862DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7862DC
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7862DC#FFFFFF#000000##FFFFFF
##7862DC1.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A78E0
Deuteranopia (green-blind)
#1B72D9
Tritanopia (blue-blind)
#587D96
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7862dc;
/* rgb */ color: rgb(120, 98, 220);
/* oklch */ color: oklch(57.9% 0.179 287.8);
Tailwind
colors: {
  custom: {
    50: '#a58fe8',
    500: '#7862dc',
    950: '#000000',
  },
}
SCSS
$custom: #7862dc;
$custom-light: #a58fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#7862dc",
  "rgb": {
    "r": 120,
    "g": 98,
    "b": 220
  },
  "hsl": {
    "h": 250.82,
    "s": 63.542,
    "l": 62.353
  },
  "oklch": {
    "l": 0.57949,
    "c": 0.17894,
    "h": 287.8
  },
  "luminance": 0.17896
}

Semantic roles & 50–950 ramp

primary
#7862DC
secondary
#DBE3B7
accent
#CB1AAB
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7862DC

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

Preview Lab → · Contrast checker → · Palette generator →

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