#7952CA#7952CA

#7952CA is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.2% C 0.178 H 294.7°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7952CA
RGBrgb(121, 82, 202)
HSLhsl(260, 53%, 56%)
HSVhsv(260, 59%, 79%)
CMYKcmyk(40.1%, 59.4%, 0%, 20.8%)
CIE-LABlab(44.75, 43.08, -56.92)
CIE-LCHlch(44.75, 71.39, 307.12°)
OKLaboklab(54.2% 0.0745 -0.162)
OKLCHoklch(54.2% 0.178 294.7)
XYZxyz(21.5603, 14.3633, 57.5021)
Luminance0.1436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7952CA #A3CA52
analogous
#5267CA #7952CA #B552CA
triadic
#7952CA #CA7952 #52CA79
tetradic
#7952CA #CA5267 #A3CA52 #52CAB5
square
#7952CA #CA5267 #A3CA52 #52CAB5
split-complementary
#7952CA #CAB552 #67CA52
monochromatic
#42267C #5B34AB #7952CA #9D81D8 #C2B0E7

Accessibility & contrast

On white

5.42
#7952CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#7952CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7952CA
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7952CA#FFFFFF#000000##FFFFFF
##7952CA1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#1668C7
Tritanopia (blue-blind)
#646C86
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7952ca;
/* rgb */ color: rgb(121, 82, 202);
/* oklch */ color: oklch(54.2% 0.178 294.7);
Tailwind
colors: {
  custom: {
    50: '#a584db',
    500: '#7952ca',
    950: '#000000',
  },
}
SCSS
$custom: #7952ca;
$custom-light: #a584db;
$custom-dark: #000000;
JSON
{
  "hex": "#7952ca",
  "rgb": {
    "r": 121,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 259.5,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54196,
    "c": 0.17834,
    "h": 294.7
  },
  "luminance": 0.14364
}

Semantic roles & 50–950 ramp

primary
#7952CA
secondary
#C5D5A3
accent
#DD4BAD
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7952CA

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

Preview Lab → · Contrast checker → · Palette generator →

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