#7952CD#7952CD

#7952CD is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.4% C 0.182 H 294.1°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7952CD
RGBrgb(121, 82, 205)
HSLhsl(259, 55%, 56%)
HSVhsv(259, 60%, 80%)
CMYKcmyk(41%, 60%, 0%, 19.6%)
CIE-LABlab(44.95, 43.90, -58.32)
CIE-LCHlch(44.95, 73.00, 306.97°)
OKLaboklab(54.41% 0.0744 -0.1661)
OKLCHoklch(54.41% 0.182 294.1)
XYZxyz(21.9190, 14.5068, 59.3910)
Luminance0.1451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7952CD #A6CD52
analogous
#5269CD #7952CD #B752CD
triadic
#7952CD #CD7952 #52CD79
tetradic
#7952CD #CD5269 #A6CD52 #52CDB7
square
#7952CD #CD5269 #A6CD52 #52CDB7
split-complementary
#7952CD #CDB752 #69CD52
monochromatic
#422580 #5A33AF #7952CD #9E81DB #C3B1E8

Accessibility & contrast

On white

5.38
#7952CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7952CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7952CD
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7952CD#FFFFFF#000000##FFFFFF
##7952CD1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD1
Deuteranopia (green-blind)
#0C68CA
Tritanopia (blue-blind)
#636D88
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7952cd;
/* rgb */ color: rgb(121, 82, 205);
/* oklch */ color: oklch(54.4% 0.182 294.1);
Tailwind
colors: {
  custom: {
    50: '#a584dd',
    500: '#7952cd',
    950: '#000000',
  },
}
SCSS
$custom: #7952cd;
$custom-light: #a584dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7952cd",
  "rgb": {
    "r": 121,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 259.024,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54408,
    "c": 0.18206,
    "h": 294.1
  },
  "luminance": 0.14507
}

Semantic roles & 50–950 ramp

primary
#7952CD
secondary
#C7D7A4
accent
#DE49AF
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7952CD

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

Preview Lab → · Contrast checker → · Palette generator →

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