#7851F2#7851F2

#7851F2 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.0% C 0.228 H 288.1°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#7851F2
RGBrgb(120, 81, 242)
HSLhsl(255, 86%, 63%)
HSVhsv(255, 67%, 95%)
CMYKcmyk(50.4%, 66.5%, 0%, 5.1%)
CIE-LABlab(47.35, 54.45, -75.45)
CIE-LCHlch(47.35, 93.05, 305.81°)
OKLaboklab(56.97% 0.0706 -0.2165)
OKLCHoklch(56.97% 0.228 288.1)
XYZxyz(26.7105, 16.2875, 85.7236)
Luminance0.1629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7851F2 #CBF251
analogous
#517AF2 #7851F2 #C851F2
triadic
#7851F2 #F27851 #51F278
tetradic
#7851F2 #F2517A #CBF251 #51F2C8
square
#7851F2 #F2517A #CBF251 #51F2C8
split-complementary
#7851F2 #F2C851 #7AF251
monochromatic
#380EBB #4C18EE #7851F2 #A48AF6 #D0C3FB

Accessibility & contrast

On white

4.93
#7851F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#7851F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7851F2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7851F2#FFFFFF#000000##FFFFFF
##7851F21.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F7
Deuteranopia (green-blind)
#006CEF
Tritanopia (blue-blind)
#4B7A9B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7851f2;
/* rgb */ color: rgb(120, 81, 242);
/* oklch */ color: oklch(57.0% 0.228 288.1);
Tailwind
colors: {
  custom: {
    50: '#a984f7',
    500: '#7851f2',
    950: '#000000',
  },
}
SCSS
$custom: #7851f2;
$custom-light: #a984f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7851f2",
  "rgb": {
    "r": 120,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 254.534,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.56969,
    "c": 0.22776,
    "h": 288.1
  },
  "luminance": 0.16289
}

Semantic roles & 50–950 ramp

primary
#7851F2
secondary
#DEECB3
accent
#E303AC
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7851F2

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

Preview Lab → · Contrast checker → · Palette generator →

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