#7952D2#7952D2

#7952D2 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.8% C 0.188 H 293.2°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7952D2
RGBrgb(121, 82, 210)
HSLhsl(258, 59%, 57%)
HSVhsv(258, 61%, 82%)
CMYKcmyk(42.4%, 61%, 0%, 17.6%)
CIE-LABlab(45.29, 45.26, -60.64)
CIE-LCHlch(45.29, 75.67, 306.73°)
OKLaboklab(54.77% 0.0742 -0.173)
OKLCHoklch(54.77% 0.188 293.2)
XYZxyz(22.5322, 14.7521, 62.6205)
Luminance0.1475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7952D2 #ABD252
analogous
#526BD2 #7952D2 #B952D2
triadic
#7952D2 #D27952 #52D279
tetradic
#7952D2 #D2526B #ABD252 #52D2B9
square
#7952D2 #D2526B #ABD252 #52D2B9
split-complementary
#7952D2 #D2B952 #6BD252
monochromatic
#412387 #5930B7 #7952D2 #9F83DF #C4B3EB

Accessibility & contrast

On white

5.32
#7952D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#7952D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7952D2
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7952D2#FFFFFF#000000##FFFFFF
##7952D21.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#0069CF
Tritanopia (blue-blind)
#616F8A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7952d2;
/* rgb */ color: rgb(121, 82, 210);
/* oklch */ color: oklch(54.8% 0.188 293.2);
Tailwind
colors: {
  custom: {
    50: '#a684e1',
    500: '#7952d2',
    950: '#000000',
  },
}
SCSS
$custom: #7952d2;
$custom-light: #a684e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7952d2",
  "rgb": {
    "r": 121,
    "g": 82,
    "b": 210
  },
  "hsl": {
    "h": 258.281,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.54766,
    "c": 0.18821,
    "h": 293.2
  },
  "luminance": 0.14753
}

Semantic roles & 50–950 ramp

primary
#7952D2
secondary
#CADAA6
accent
#E246B2
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7952D2

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

Preview Lab → · Contrast checker → · Palette generator →

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