#7851F6#7851F6

#7851F6 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.3% C 0.232 H 287.5°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#7851F6
RGBrgb(120, 81, 246)
HSLhsl(254, 90%, 64%)
HSVhsv(254, 67%, 96%)
CMYKcmyk(51.2%, 67.1%, 0%, 3.5%)
CIE-LABlab(47.66, 55.56, -77.18)
CIE-LCHlch(47.66, 95.10, 305.75°)
OKLaboklab(57.29% 0.07 -0.2216)
OKLCHoklch(57.29% 0.232 287.5)
XYZxyz(27.3178, 16.5304, 88.9222)
Luminance0.1653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7851F6 #CFF651
analogous
#517DF6 #7851F6 #CB51F6
triadic
#7851F6 #F67851 #51F678
tetradic
#7851F6 #F6517D #CFF651 #51F6CB
square
#7851F6 #F6517D #CFF651 #51F6CB
split-complementary
#7851F6 #F6CB51 #7DF651
monochromatic
#360AC3 #4B17F3 #7851F6 #A58BF9 #D2C5FC

Accessibility & contrast

On white

4.88
#7851F6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7851F6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7851F6
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7851F6#FFFFFF#000000##FFFFFF
##7851F61.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075FB
Deuteranopia (green-blind)
#006DF3
Tritanopia (blue-blind)
#487B9D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7851f6;
/* rgb */ color: rgb(120, 81, 246);
/* oklch */ color: oklch(57.3% 0.232 287.5);
Tailwind
colors: {
  custom: {
    50: '#a984fa',
    500: '#7851f6',
    950: '#000000',
  },
}
SCSS
$custom: #7851f6;
$custom-light: #a984fa;
$custom-dark: #000000;
JSON
{
  "hex": "#7851f6",
  "rgb": {
    "r": 120,
    "g": 81,
    "b": 246
  },
  "hsl": {
    "h": 254.182,
    "s": 90.164,
    "l": 64.118
  },
  "oklch": {
    "l": 0.57292,
    "c": 0.23241,
    "h": 287.5
  },
  "luminance": 0.16532
}

Semantic roles & 50–950 ramp

primary
#7851F6
secondary
#E1EEB5
accent
#E600AF
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7851F6

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

Preview Lab → · Contrast checker → · Palette generator →

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