#7952EB#7952EB

#7952EB is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.6% C 0.218 H 289.2°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7952EB
RGBrgb(121, 82, 235)
HSLhsl(255, 79%, 62%)
HSVhsv(255, 65%, 92%)
CMYKcmyk(48.5%, 65.1%, 0%, 7.8%)
CIE-LABlab(47.10, 52.14, -71.92)
CIE-LCHlch(47.10, 88.83, 305.94°)
OKLaboklab(56.65% 0.0719 -0.2061)
OKLCHoklch(56.65% 0.218 289.2)
XYZxyz(25.8935, 16.0966, 80.3238)
Luminance0.1610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7952EB #C4EB52
analogous
#5278EB #7952EB #C652EB
triadic
#7952EB #EB7952 #52EB79
tetradic
#7952EB #EB5278 #C4EB52 #52EBC6
square
#7952EB #EB5278 #C4EB52 #52EBC6
split-complementary
#7952EB #EBC652 #78EB52
monochromatic
#3B14AE #4F1BE5 #7952EB #A389F1 #CEC0F8

Accessibility & contrast

On white

4.98
#7952EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7952EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7952EB
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7952EB#FFFFFF#000000##FFFFFF
##7952EB1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F0
Deuteranopia (green-blind)
#006CE8
Tritanopia (blue-blind)
#527897
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7952eb;
/* rgb */ color: rgb(121, 82, 235);
/* oklch */ color: oklch(56.6% 0.218 289.2);
Tailwind
colors: {
  custom: {
    50: '#a885f2',
    500: '#7952eb',
    950: '#000000',
  },
}
SCSS
$custom: #7952eb;
$custom-light: #a885f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7952eb",
  "rgb": {
    "r": 121,
    "g": 82,
    "b": 235
  },
  "hsl": {
    "h": 255.294,
    "s": 79.275,
    "l": 62.157
  },
  "oklch": {
    "l": 0.56646,
    "c": 0.21831,
    "h": 289.2
  },
  "luminance": 0.16098
}

Semantic roles & 50–950 ramp

primary
#7952EB
secondary
#DAE8B0
accent
#DC0AA6
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7952EB

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

Preview Lab → · Contrast checker → · Palette generator →

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