#7952CC#7952CC

#7952CC is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.3% C 0.181 H 294.3°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#7952CC
RGBrgb(121, 82, 204)
HSLhsl(259, 54%, 56%)
HSVhsv(259, 60%, 80%)
CMYKcmyk(40.7%, 59.8%, 0%, 20%)
CIE-LABlab(44.88, 43.63, -57.86)
CIE-LCHlch(44.88, 72.46, 307.02°)
OKLaboklab(54.34% 0.0745 -0.1648)
OKLCHoklch(54.34% 0.181 294.3)
XYZxyz(21.7986, 14.4586, 58.7573)
Luminance0.1446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7952CC #A5CC52
analogous
#5268CC #7952CC #B652CC
triadic
#7952CC #CC7952 #52CC79
tetradic
#7952CC #CC5268 #A5CC52 #52CCB6
square
#7952CC #CC5268 #A5CC52 #52CCB6
split-complementary
#7952CC #CCB652 #68CC52
monochromatic
#42257E #5A33AE #7952CC #9E81DA #C2B1E8

Accessibility & contrast

On white

5.40
#7952CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7952CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7952CC
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7952CC#FFFFFF#000000##FFFFFF
##7952CC1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#1068C9
Tritanopia (blue-blind)
#636D87
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7952cc;
/* rgb */ color: rgb(121, 82, 204);
/* oklch */ color: oklch(54.3% 0.181 294.3);
Tailwind
colors: {
  custom: {
    50: '#a584dc',
    500: '#7952cc',
    950: '#000000',
  },
}
SCSS
$custom: #7952cc;
$custom-light: #a584dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7952cc",
  "rgb": {
    "r": 121,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 259.18,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54337,
    "c": 0.18081,
    "h": 294.3
  },
  "luminance": 0.14459
}

Semantic roles & 50–950 ramp

primary
#7952CC
secondary
#C6D6A4
accent
#DE4AAF
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7952CC

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

Preview Lab → · Contrast checker → · Palette generator →

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