#7851DD#7851DD

#7851DD is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.3% C 0.203 H 291.1°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#7851DD
RGBrgb(120, 81, 221)
HSLhsl(257, 67%, 59%)
HSVhsv(257, 63%, 87%)
CMYKcmyk(45.7%, 63.3%, 0%, 13.3%)
CIE-LABlab(45.77, 48.63, -66.16)
CIE-LCHlch(45.77, 82.11, 306.31°)
OKLaboklab(55.33% 0.0731 -0.1892)
OKLCHoklch(55.33% 0.203 291.1)
XYZxyz(23.7356, 15.0976, 70.0561)
Luminance0.1510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7851DD #B6DD51
analogous
#5170DD #7851DD #BE51DD
triadic
#7851DD #DD7851 #51DD78
tetradic
#7851DD #DD5170 #B6DD51 #51DDBE
square
#7851DD #DD5170 #B6DD51 #51DDBE
split-complementary
#7851DD #DDBE51 #70DD51
monochromatic
#3F1D96 #5527C9 #7851DD #A084E7 #C7B7F1

Accessibility & contrast

On white

5.22
#7851DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#7851DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7851DD
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7851DD#FFFFFF#000000##FFFFFF
##7851DD1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE1
Deuteranopia (green-blind)
#0069DA
Tritanopia (blue-blind)
#597290
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7851dd;
/* rgb */ color: rgb(120, 81, 221);
/* oklch */ color: oklch(55.3% 0.203 291.1);
Tailwind
colors: {
  custom: {
    50: '#a684e8',
    500: '#7851dd',
    950: '#000000',
  },
}
SCSS
$custom: #7851dd;
$custom-light: #a684e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7851dd",
  "rgb": {
    "r": 120,
    "g": 81,
    "b": 221
  },
  "hsl": {
    "h": 256.714,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.55334,
    "c": 0.20287,
    "h": 291.1
  },
  "luminance": 0.15098
}

Semantic roles & 50–950 ramp

primary
#7851DD
secondary
#D1E0AA
accent
#EA3EBA
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7851DD

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

Preview Lab → · Contrast checker → · Palette generator →

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