#7862DD#7862DD

#7862DD is a mid, vivid violet. Relative luminance 0.179; OKLCH L 58.0% C 0.180 H 287.6°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7862DD
RGBrgb(120, 98, 221)
HSLhsl(251, 64%, 63%)
HSVhsv(251, 56%, 87%)
CMYKcmyk(45.7%, 55.7%, 0%, 13.3%)
CIE-LABlab(49.43, 39.01, -60.23)
CIE-LCHlch(49.43, 71.76, 302.93°)
OKLaboklab(58.02% 0.0546 -0.1718)
OKLCHoklch(58.02% 0.18 287.6)
XYZxyz(25.1608, 17.9479, 70.5312)
Luminance0.1795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7862DD #C7DD62
analogous
#6289DD #7862DD #B662DD
triadic
#7862DD #DD7862 #62DD78
tetradic
#7862DD #DD6289 #C7DD62 #62DDB6
square
#7862DD #DD6289 #C7DD62 #62DDB6
split-complementary
#7862DD #DDB662 #89DD62
monochromatic
#3A23A2 #4D30D2 #7862DD #A394E8 #CFC7F3

Accessibility & contrast

On white

4.58
#7862DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#7862DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7862DD
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7862DD#FFFFFF#000000##000000
##7862DD1.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1878E1
Deuteranopia (green-blind)
#1872DA
Tritanopia (blue-blind)
#587D96
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7862dd;
/* rgb */ color: rgb(120, 98, 221);
/* oklch */ color: oklch(58.0% 0.180 287.6);
Tailwind
colors: {
  custom: {
    50: '#a58fe8',
    500: '#7862dd',
    950: '#000000',
  },
}
SCSS
$custom: #7862dd;
$custom-light: #a58fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#7862dd",
  "rgb": {
    "r": 120,
    "g": 98,
    "b": 221
  },
  "hsl": {
    "h": 250.732,
    "s": 64.398,
    "l": 62.549
  },
  "oklch": {
    "l": 0.58018,
    "c": 0.18024,
    "h": 287.6
  },
  "luminance": 0.17949
}

Semantic roles & 50–950 ramp

primary
#7862DD
secondary
#DCE4B7
accent
#CC19AC
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7862DD

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

Preview Lab → · Contrast checker → · Palette generator →

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