#7862DF#7862DF

#7862DF is a mid, vivid violet. Relative luminance 0.181; OKLCH L 58.2% C 0.183 H 287.4°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7862DF
RGBrgb(120, 98, 223)
HSLhsl(251, 66%, 63%)
HSVhsv(251, 56%, 87%)
CMYKcmyk(46.2%, 56.1%, 0%, 12.5%)
CIE-LABlab(49.56, 39.58, -61.16)
CIE-LCHlch(49.56, 72.85, 302.91°)
OKLaboklab(58.16% 0.0546 -0.1745)
OKLCHoklch(58.16% 0.183 287.4)
XYZxyz(25.4288, 18.0551, 71.9429)
Luminance0.1806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7862DF #C9DF62
analogous
#628ADF #7862DF #B662DF
triadic
#7862DF #DF7862 #62DF78
tetradic
#7862DF #DF628A #C9DF62 #62DFB6
square
#7862DF #DF628A #C9DF62 #62DFB6
split-complementary
#7862DF #DFB662 #8ADF62
monochromatic
#3922A5 #4C2FD5 #7862DF #A495E9 #CFC8F4

Accessibility & contrast

On white

4.55
#7862DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#7862DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7862DF
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7862DF#FFFFFF#000000##000000
##7862DF1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1279E3
Deuteranopia (green-blind)
#1272DC
Tritanopia (blue-blind)
#577E97
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7862df;
/* rgb */ color: rgb(120, 98, 223);
/* oklch */ color: oklch(58.2% 0.183 287.4);
Tailwind
colors: {
  custom: {
    50: '#a58fea',
    500: '#7862df',
    950: '#000000',
  },
}
SCSS
$custom: #7862df;
$custom-light: #a58fea;
$custom-dark: #000000;
JSON
{
  "hex": "#7862df",
  "rgb": {
    "r": 120,
    "g": 98,
    "b": 223
  },
  "hsl": {
    "h": 250.56,
    "s": 66.138,
    "l": 62.941
  },
  "oklch": {
    "l": 0.58156,
    "c": 0.18283,
    "h": 287.4
  },
  "luminance": 0.18056
}

Semantic roles & 50–950 ramp

primary
#7862DF
secondary
#DDE5B8
accent
#CE17AE
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7862DF

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

Preview Lab → · Contrast checker → · Palette generator →

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