#7851F3#7851F3

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

Color values

HEX#7851F3
RGBrgb(120, 81, 243)
HSLhsl(254, 87%, 64%)
HSVhsv(254, 67%, 95%)
CMYKcmyk(50.6%, 66.7%, 0%, 4.7%)
CIE-LABlab(47.43, 54.73, -75.89)
CIE-LCHlch(47.43, 93.56, 305.80°)
OKLaboklab(57.05% 0.0705 -0.2178)
OKLCHoklch(57.05% 0.229 287.9)
XYZxyz(26.8611, 16.3477, 86.5167)
Luminance0.1635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7851F3 #CCF351
analogous
#517BF3 #7851F3 #C951F3
triadic
#7851F3 #F37851 #51F378
tetradic
#7851F3 #F3517B #CCF351 #51F3C9
square
#7851F3 #F3517B #CCF351 #51F3C9
split-complementary
#7851F3 #F3C951 #7BF351
monochromatic
#370DBD #4C18EF #7851F3 #A48AF7 #D1C4FB

Accessibility & contrast

On white

4.92
#7851F3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#7851F3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7851F3
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7851F3#FFFFFF#000000##FFFFFF
##7851F31.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F8
Deuteranopia (green-blind)
#006CF0
Tritanopia (blue-blind)
#4A7A9C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7851f3;
/* rgb */ color: rgb(120, 81, 243);
/* oklch */ color: oklch(57.0% 0.229 287.9);
Tailwind
colors: {
  custom: {
    50: '#a984f8',
    500: '#7851f3',
    950: '#000000',
  },
}
SCSS
$custom: #7851f3;
$custom-light: #a984f8;
$custom-dark: #000000;
JSON
{
  "hex": "#7851f3",
  "rgb": {
    "r": 120,
    "g": 81,
    "b": 243
  },
  "hsl": {
    "h": 254.444,
    "s": 87.097,
    "l": 63.529
  },
  "oklch": {
    "l": 0.5705,
    "c": 0.22892,
    "h": 287.9
  },
  "luminance": 0.16349
}

Semantic roles & 50–950 ramp

primary
#7851F3
secondary
#DFEDB3
accent
#E402AD
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7851F3

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

Preview Lab → · Contrast checker → · Palette generator →

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