#7851FF#7851FF

#7851FF is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 58.0% C 0.243 H 286.4°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7851FF
RGBrgb(120, 81, 255)
HSLhsl(253, 100%, 66%)
HSVhsv(253, 68%, 100%)
CMYKcmyk(52.9%, 68.2%, 0%, 0%)
CIE-LABlab(48.38, 58.06, -81.03)
CIE-LCHlch(48.38, 99.68, 305.63°)
OKLaboklab(58.03% 0.0686 -0.2329)
OKLCHoklch(58.03% 0.243 286.4)
XYZxyz(28.7328, 17.0964, 96.3743)
Luminance0.1710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7851FF #D8FF51
analogous
#5181FF #7851FF #CF51FF
triadic
#7851FF #FF7851 #51FF78
tetradic
#7851FF #FF5181 #D8FF51 #51FFCF
square
#7851FF #FF5181 #D8FF51 #51FFCF
split-complementary
#7851FF #FFCF51 #81FF51
monochromatic
#3000D6 #4914FF #7851FF #A78EFF #D7CBFF

Accessibility & contrast

On white

4.75
#7851FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#7851FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7851FF
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7851FF#FFFFFF#000000##FFFFFF
##7851FF1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077FF
Deuteranopia (green-blind)
#006EFC
Tritanopia (blue-blind)
#407EA2
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7851ff;
/* rgb */ color: rgb(120, 81, 255);
/* oklch */ color: oklch(58.0% 0.243 286.4);
Tailwind
colors: {
  custom: {
    50: '#ab85ff',
    500: '#7851ff',
    950: '#000000',
  },
}
SCSS
$custom: #7851ff;
$custom-light: #ab85ff;
$custom-dark: #000000;
JSON
{
  "hex": "#7851ff",
  "rgb": {
    "r": 120,
    "g": 81,
    "b": 255
  },
  "hsl": {
    "h": 253.448,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.58028,
    "c": 0.24278,
    "h": 286.4
  },
  "luminance": 0.17098
}

Semantic roles & 50–950 ramp

primary
#7851FF
secondary
#E6F3B9
accent
#E600B2
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B18
muted
#807C86

Preview Lab

Preview with #7851FF

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

Preview Lab → · Contrast checker → · Palette generator →

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