#7952DC#7952DC

#7952DC is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 55.5% C 0.200 H 291.5°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#7952DC
RGBrgb(121, 82, 220)
HSLhsl(257, 66%, 59%)
HSVhsv(257, 63%, 86%)
CMYKcmyk(45%, 62.7%, 0%, 13.7%)
CIE-LABlab(46.00, 48.00, -65.22)
CIE-LCHlch(46.00, 80.98, 306.35°)
OKLaboklab(55.5% 0.0735 -0.1864)
OKLCHoklch(55.5% 0.2 291.5)
XYZxyz(23.8171, 15.2660, 69.3880)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7952DC #B5DC52
analogous
#5270DC #7952DC #BE52DC
triadic
#7952DC #DC7952 #52DC79
tetradic
#7952DC #DC5270 #B5DC52 #52DCBE
square
#7952DC #DC5270 #B5DC52 #52DCBE
split-complementary
#7952DC #DCBE52 #70DC52
monochromatic
#401E95 #5629C8 #7952DC #A085E6 #C8B8F1

Accessibility & contrast

On white

5.18
#7952DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#7952DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7952DC
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7952DC#FFFFFF#000000##FFFFFF
##7952DC1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#006AD9
Tritanopia (blue-blind)
#5B728F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7952dc;
/* rgb */ color: rgb(121, 82, 220);
/* oklch */ color: oklch(55.5% 0.200 291.5);
Tailwind
colors: {
  custom: {
    50: '#a784e8',
    500: '#7952dc',
    950: '#000000',
  },
}
SCSS
$custom: #7952dc;
$custom-light: #a784e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7952dc",
  "rgb": {
    "r": 121,
    "g": 82,
    "b": 220
  },
  "hsl": {
    "h": 256.957,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.555,
    "c": 0.20039,
    "h": 291.5
  },
  "luminance": 0.15267
}

Semantic roles & 50–950 ramp

primary
#7952DC
secondary
#D1E0AA
accent
#E93FB9
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7952DC

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

Preview Lab → · Contrast checker → · Palette generator →

#7952DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva