#7851DB#7851DB

#7851DB is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.2% C 0.200 H 291.4°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#7851DB
RGBrgb(120, 81, 219)
HSLhsl(257, 66%, 59%)
HSVhsv(257, 63%, 86%)
CMYKcmyk(45.2%, 63%, 0%, 14.1%)
CIE-LABlab(45.62, 48.07, -65.26)
CIE-LCHlch(45.62, 81.06, 306.38°)
OKLaboklab(55.18% 0.0733 -0.1866)
OKLCHoklch(55.18% 0.2 291.4)
XYZxyz(23.4708, 14.9916, 68.6611)
Luminance0.1499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7851DB #B4DB51
analogous
#516FDB #7851DB #BD51DB
triadic
#7851DB #DB7851 #51DB78
tetradic
#7851DB #DB516F #B4DB51 #51DBBD
square
#7851DB #DB516F #B4DB51 #51DBBD
split-complementary
#7851DB #DBBD51 #6FDB51
monochromatic
#3F1E93 #5529C6 #7851DB #9F84E5 #C7B6F0

Accessibility & contrast

On white

5.25
#7851DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#7851DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7851DB
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7851DB#FFFFFF#000000##FFFFFF
##7851DB1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#0069D8
Tritanopia (blue-blind)
#5A718F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7851db;
/* rgb */ color: rgb(120, 81, 219);
/* oklch */ color: oklch(55.2% 0.200 291.4);
Tailwind
colors: {
  custom: {
    50: '#a684e7',
    500: '#7851db',
    950: '#000000',
  },
}
SCSS
$custom: #7851db;
$custom-light: #a684e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7851db",
  "rgb": {
    "r": 120,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 256.957,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.55183,
    "c": 0.20045,
    "h": 291.4
  },
  "luminance": 0.14992
}

Semantic roles & 50–950 ramp

primary
#7851DB
secondary
#D0DFA9
accent
#E93FB9
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7851DB

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

Preview Lab → · Contrast checker → · Palette generator →

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