#7851DA#7851DA

#7851DA is a mid, vivid violet. Relative luminance 0.149; OKLCH L 55.1% C 0.199 H 291.6°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7851DA
RGBrgb(120, 81, 218)
HSLhsl(257, 65%, 59%)
HSVhsv(257, 63%, 85%)
CMYKcmyk(45%, 62.8%, 0%, 14.5%)
CIE-LABlab(45.55, 47.80, -64.81)
CIE-LCHlch(45.55, 80.53, 306.41°)
OKLaboklab(55.11% 0.0734 -0.1852)
OKLCHoklch(55.11% 0.199 291.6)
XYZxyz(23.3395, 14.9391, 67.9699)
Luminance0.1494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7851DA #B3DA51
analogous
#516EDA #7851DA #BC51DA
triadic
#7851DA #DA7851 #51DA78
tetradic
#7851DA #DA516E #B3DA51 #51DABC
square
#7851DA #DA516E #B3DA51 #51DABC
split-complementary
#7851DA #DABC51 #6EDA51
monochromatic
#401F92 #562AC4 #7851DA #9F83E5 #C6B6EF

Accessibility & contrast

On white

5.27
#7851DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#7851DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7851DA
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7851DA#FFFFFF#000000##FFFFFF
##7851DA1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDE
Deuteranopia (green-blind)
#0069D7
Tritanopia (blue-blind)
#5B718E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7851da;
/* rgb */ color: rgb(120, 81, 218);
/* oklch */ color: oklch(55.1% 0.199 291.6);
Tailwind
colors: {
  custom: {
    50: '#a684e6',
    500: '#7851da',
    950: '#000000',
  },
}
SCSS
$custom: #7851da;
$custom-light: #a684e6;
$custom-dark: #000000;
JSON
{
  "hex": "#7851da",
  "rgb": {
    "r": 120,
    "g": 81,
    "b": 218
  },
  "hsl": {
    "h": 257.08,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.55108,
    "c": 0.19925,
    "h": 291.6
  },
  "luminance": 0.1494
}

Semantic roles & 50–950 ramp

primary
#7851DA
secondary
#CFDEA8
accent
#E840B8
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7851DA

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

Preview Lab → · Contrast checker → · Palette generator →

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