#7851CB#7851CB

#7851CB is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.0% C 0.181 H 294.3°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#7851CB
RGBrgb(120, 81, 203)
HSLhsl(259, 54%, 56%)
HSVhsv(259, 60%, 80%)
CMYKcmyk(40.9%, 60.1%, 0%, 20.4%)
CIE-LABlab(44.50, 43.70, -57.90)
CIE-LCHlch(44.50, 72.54, 307.04°)
OKLaboklab(54.01% 0.0743 -0.1649)
OKLCHoklch(54.01% 0.181 294.3)
XYZxyz(21.4648, 14.1892, 58.0962)
Luminance0.1419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7851CB #A4CB51
analogous
#5167CB #7851CB #B551CB
triadic
#7851CB #CB7851 #51CB78
tetradic
#7851CB #CB5167 #A4CB51 #51CBB5
square
#7851CB #CB5167 #A4CB51 #51CBB5
split-complementary
#7851CB #CBB551 #67CB51
monochromatic
#41257C #5A33AC #7851CB #9D80D9 #C1AFE7

Accessibility & contrast

On white

5.47
#7851CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#7851CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7851CB
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7851CB#FFFFFF#000000##FFFFFF
##7851CB1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#0C67C8
Tritanopia (blue-blind)
#626C86
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7851cb;
/* rgb */ color: rgb(120, 81, 203);
/* oklch */ color: oklch(54.0% 0.181 294.3);
Tailwind
colors: {
  custom: {
    50: '#a483dc',
    500: '#7851cb',
    950: '#000000',
  },
}
SCSS
$custom: #7851cb;
$custom-light: #a483dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7851cb",
  "rgb": {
    "r": 120,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 259.18,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54014,
    "c": 0.18091,
    "h": 294.3
  },
  "luminance": 0.1419
}

Semantic roles & 50–950 ramp

primary
#7851CB
secondary
#C5D5A3
accent
#DD4AAE
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7851CB

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

Preview Lab → · Contrast checker → · Palette generator →

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