#7952DB#7952DB

#7952DB is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.4% C 0.199 H 291.7°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7952DB
RGBrgb(121, 82, 219)
HSLhsl(257, 66%, 59%)
HSVhsv(257, 63%, 86%)
CMYKcmyk(44.7%, 62.6%, 0%, 14.1%)
CIE-LABlab(45.92, 47.72, -64.77)
CIE-LCHlch(45.92, 80.45, 306.39°)
OKLaboklab(55.43% 0.0736 -0.1851)
OKLCHoklch(55.43% 0.199 291.7)
XYZxyz(23.6851, 15.2132, 68.6926)
Luminance0.1521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7952DB #B4DB52
analogous
#5270DB #7952DB #BD52DB
triadic
#7952DB #DB7952 #52DB79
tetradic
#7952DB #DB5270 #B4DB52 #52DBBD
square
#7952DB #DB5270 #B4DB52 #52DBBD
split-complementary
#7952DB #DBBD52 #70DB52
monochromatic
#401F94 #5629C6 #7952DB #A085E6 #C7B7F0

Accessibility & contrast

On white

5.19
#7952DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#7952DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7952DB
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7952DB#FFFFFF#000000##FFFFFF
##7952DB1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDF
Deuteranopia (green-blind)
#006AD8
Tritanopia (blue-blind)
#5C728F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7952db;
/* rgb */ color: rgb(121, 82, 219);
/* oklch */ color: oklch(55.4% 0.199 291.7);
Tailwind
colors: {
  custom: {
    50: '#a784e7',
    500: '#7952db',
    950: '#000000',
  },
}
SCSS
$custom: #7952db;
$custom-light: #a784e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7952db",
  "rgb": {
    "r": 121,
    "g": 82,
    "b": 219
  },
  "hsl": {
    "h": 257.08,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.55425,
    "c": 0.19917,
    "h": 291.7
  },
  "luminance": 0.15214
}

Semantic roles & 50–950 ramp

primary
#7952DB
secondary
#D0DFAA
accent
#E93FB8
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7952DB

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

Preview Lab → · Contrast checker → · Palette generator →

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