#7851CD#7851CD

#7851CD is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.2% C 0.183 H 293.9°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#7851CD
RGBrgb(120, 81, 205)
HSLhsl(259, 55%, 56%)
HSVhsv(259, 60%, 80%)
CMYKcmyk(41.5%, 60.5%, 0%, 19.6%)
CIE-LABlab(44.64, 44.24, -58.83)
CIE-LCHlch(44.64, 73.61, 306.94°)
OKLaboklab(54.16% 0.0742 -0.1677)
OKLCHoklch(54.16% 0.183 293.9)
XYZxyz(21.7047, 14.2852, 59.3595)
Luminance0.1429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7851CD #A6CD51
analogous
#5168CD #7851CD #B651CD
triadic
#7851CD #CD7851 #51CD78
tetradic
#7851CD #CD5168 #A6CD51 #51CDB6
square
#7851CD #CD5168 #A6CD51 #51CDB6
split-complementary
#7851CD #CDB651 #68CD51
monochromatic
#41257F #5932AF #7851CD #9D81DB #C2B0E8

Accessibility & contrast

On white

5.44
#7851CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#7851CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7851CD
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7851CD#FFFFFF#000000##FFFFFF
##7851CD1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#0267CA
Tritanopia (blue-blind)
#616D87
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7851cd;
/* rgb */ color: rgb(120, 81, 205);
/* oklch */ color: oklch(54.2% 0.183 293.9);
Tailwind
colors: {
  custom: {
    50: '#a583dd',
    500: '#7851cd',
    950: '#000000',
  },
}
SCSS
$custom: #7851cd;
$custom-light: #a583dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7851cd",
  "rgb": {
    "r": 120,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 258.871,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54156,
    "c": 0.18338,
    "h": 293.9
  },
  "luminance": 0.14286
}

Semantic roles & 50–950 ramp

primary
#7851CD
secondary
#C6D7A3
accent
#DF49B0
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7851CD

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

Preview Lab → · Contrast checker → · Palette generator →

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