#7952CB#7952CB

#7952CB is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.3% C 0.180 H 294.5°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#7952CB
RGBrgb(121, 82, 203)
HSLhsl(259, 54%, 56%)
HSVhsv(259, 60%, 80%)
CMYKcmyk(40.4%, 59.6%, 0%, 20.4%)
CIE-LABlab(44.82, 43.36, -57.39)
CIE-LCHlch(44.82, 71.92, 307.07°)
OKLaboklab(54.27% 0.0745 -0.1634)
OKLCHoklch(54.27% 0.18 294.5)
XYZxyz(21.6791, 14.4108, 58.1277)
Luminance0.1441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7952CB #A4CB52
analogous
#5267CB #7952CB #B552CB
triadic
#7952CB #CB7952 #52CB79
tetradic
#7952CB #CB5267 #A4CB52 #52CBB5
square
#7952CB #CB5267 #A4CB52 #52CBB5
split-complementary
#7952CB #CBB552 #67CB52
monochromatic
#42267D #5B34AC #7952CB #9D81D9 #C2B0E7

Accessibility & contrast

On white

5.41
#7952CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#7952CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7952CB
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7952CB#FFFFFF#000000##FFFFFF
##7952CB1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#1368C8
Tritanopia (blue-blind)
#646D87
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7952cb;
/* rgb */ color: rgb(121, 82, 203);
/* oklch */ color: oklch(54.3% 0.180 294.5);
Tailwind
colors: {
  custom: {
    50: '#a584dc',
    500: '#7952cb',
    950: '#000000',
  },
}
SCSS
$custom: #7952cb;
$custom-light: #a584dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7952cb",
  "rgb": {
    "r": 121,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 259.339,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.54267,
    "c": 0.17958,
    "h": 294.5
  },
  "luminance": 0.14411
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7952CB

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

Preview Lab → · Contrast checker → · Palette generator →

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