#7851CF#7851CF

#7851CF is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.3% C 0.186 H 293.5°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7851CF
RGBrgb(120, 81, 207)
HSLhsl(259, 57%, 56%)
HSVhsv(259, 61%, 81%)
CMYKcmyk(42%, 60.9%, 0%, 18.8%)
CIE-LABlab(44.78, 44.78, -59.76)
CIE-LCHlch(44.78, 74.68, 306.85°)
OKLaboklab(54.3% 0.0741 -0.1704)
OKLCHoklch(54.3% 0.186 293.5)
XYZxyz(21.9476, 14.3823, 60.6391)
Luminance0.1438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7851CF #A8CF51
analogous
#5169CF #7851CF #B751CF
triadic
#7851CF #CF7851 #51CF78
tetradic
#7851CF #CF5169 #A8CF51 #51CFB7
square
#7851CF #CF5169 #A8CF51 #51CFB7
split-complementary
#7851CF #CFB751 #69CF51
monochromatic
#412482 #5931B2 #7851CF #9D81DC #C2B1E9

Accessibility & contrast

On white

5.42
#7851CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#7851CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7851CF
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7851CF#FFFFFF#000000##FFFFFF
##7851CF1.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD3
Deuteranopia (green-blind)
#0068CC
Tritanopia (blue-blind)
#606D88
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7851cf;
/* rgb */ color: rgb(120, 81, 207);
/* oklch */ color: oklch(54.3% 0.186 293.5);
Tailwind
colors: {
  custom: {
    50: '#a584de',
    500: '#7851cf',
    950: '#000000',
  },
}
SCSS
$custom: #7851cf;
$custom-light: #a584de;
$custom-dark: #000000;
JSON
{
  "hex": "#7851cf",
  "rgb": {
    "r": 120,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 258.571,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.543,
    "c": 0.18584,
    "h": 293.5
  },
  "luminance": 0.14383
}

Semantic roles & 50–950 ramp

primary
#7851CF
secondary
#C8D8A4
accent
#E048B1
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7851CF

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

Preview Lab → · Contrast checker → · Palette generator →

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