#7862DB#7862DB

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

Color values

HEX#7862DB
RGBrgb(120, 98, 219)
HSLhsl(251, 63%, 62%)
HSVhsv(251, 55%, 86%)
CMYKcmyk(45.2%, 55.3%, 0%, 14.1%)
CIE-LABlab(49.30, 38.43, -59.31)
CIE-LCHlch(49.30, 70.67, 302.94°)
OKLaboklab(57.88% 0.0546 -0.169)
OKLCHoklch(57.88% 0.178 287.9)
XYZxyz(24.8959, 17.8419, 69.1362)
Luminance0.1784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7862DB #C5DB62
analogous
#6289DB #7862DB #B462DB
triadic
#7862DB #DB7862 #62DB78
tetradic
#7862DB #DB6289 #C5DB62 #62DBB4
square
#7862DB #DB6289 #C5DB62 #62DBB4
split-complementary
#7862DB #DBB462 #89DB62
monochromatic
#3A249E #4D30D0 #7862DB #A394E6 #CEC6F2

Accessibility & contrast

On white

4.60
#7862DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#7862DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7862DB
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7862DB#FFFFFF#000000##FFFFFF
##7862DB1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D78DF
Deuteranopia (green-blind)
#1D72D8
Tritanopia (blue-blind)
#597D95
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7862db;
/* rgb */ color: rgb(120, 98, 219);
/* oklch */ color: oklch(57.9% 0.178 287.9);
Tailwind
colors: {
  custom: {
    50: '#a58fe7',
    500: '#7862db',
    950: '#000000',
  },
}
SCSS
$custom: #7862db;
$custom-light: #a58fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#7862db",
  "rgb": {
    "r": 120,
    "g": 98,
    "b": 219
  },
  "hsl": {
    "h": 250.909,
    "s": 62.694,
    "l": 62.157
  },
  "oklch": {
    "l": 0.57881,
    "c": 0.17764,
    "h": 287.9
  },
  "luminance": 0.17843
}

Semantic roles & 50–950 ramp

primary
#7862DB
secondary
#DBE3B6
accent
#CA1BAB
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7862DB

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

Preview Lab → · Contrast checker → · Palette generator →

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