#7952C8#7952C8

#7952C8 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.1% C 0.176 H 295.1°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#7952C8
RGBrgb(121, 82, 200)
HSLhsl(260, 52%, 55%)
HSVhsv(260, 59%, 78%)
CMYKcmyk(39.5%, 59%, 0%, 21.6%)
CIE-LABlab(44.62, 42.54, -55.98)
CIE-LCHlch(44.62, 70.31, 307.23°)
OKLaboklab(54.06% 0.0746 -0.1593)
OKLCHoklch(54.06% 0.176 295.1)
XYZxyz(21.3250, 14.2692, 56.2631)
Luminance0.1427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7952C8 #A1C852
analogous
#5266C8 #7952C8 #B452C8
triadic
#7952C8 #C87952 #52C879
tetradic
#7952C8 #C85266 #A1C852 #52C8B4
square
#7952C8 #C85266 #A1C852 #52C8B4
split-complementary
#7952C8 #C8B452 #66C852
monochromatic
#422779 #5B35A8 #7952C8 #9D80D7 #C1AFE6

Accessibility & contrast

On white

5.45
#7952C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#7952C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7952C8
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7952C8#FFFFFF#000000##FFFFFF
##7952C81.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#1B68C5
Tritanopia (blue-blind)
#656C85
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7952c8;
/* rgb */ color: rgb(121, 82, 200);
/* oklch */ color: oklch(54.1% 0.176 295.1);
Tailwind
colors: {
  custom: {
    50: '#a584d9',
    500: '#7952c8',
    950: '#000000',
  },
}
SCSS
$custom: #7952c8;
$custom-light: #a584d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7952c8",
  "rgb": {
    "r": 121,
    "g": 82,
    "b": 200
  },
  "hsl": {
    "h": 259.831,
    "s": 51.754,
    "l": 55.294
  },
  "oklch": {
    "l": 0.54057,
    "c": 0.17586,
    "h": 295.1
  },
  "luminance": 0.1427
}

Semantic roles & 50–950 ramp

primary
#7952C8
secondary
#C3D4A2
accent
#DB4DAC
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7952C8

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

Preview Lab → · Contrast checker → · Palette generator →

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