#7952F2#7952F2

#7952F2 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.2% C 0.227 H 288.3°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#7952F2
RGBrgb(121, 82, 242)
HSLhsl(255, 86%, 64%)
HSVhsv(255, 66%, 95%)
CMYKcmyk(50%, 66.1%, 0%, 5.1%)
CIE-LABlab(47.64, 54.09, -74.98)
CIE-LCHlch(47.64, 92.45, 305.80°)
OKLaboklab(57.2% 0.071 -0.2151)
OKLCHoklch(57.2% 0.227 288.3)
XYZxyz(26.9248, 16.5091, 85.7551)
Luminance0.1651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7952F2 #CBF252
analogous
#527BF2 #7952F2 #C952F2
triadic
#7952F2 #F27952 #52F279
tetradic
#7952F2 #F2527B #CBF252 #52F2C9
square
#7952F2 #F2527B #CBF252 #52F2C9
split-complementary
#7952F2 #F2C952 #7BF252
monochromatic
#380EBC #4D19EE #7952F2 #A58BF6 #D1C4FB

Accessibility & contrast

On white

4.88
#7952F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#7952F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7952F2
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7952F2#FFFFFF#000000##FFFFFF
##7952F21.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F7
Deuteranopia (green-blind)
#006DEF
Tritanopia (blue-blind)
#4D7A9B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7952f2;
/* rgb */ color: rgb(121, 82, 242);
/* oklch */ color: oklch(57.2% 0.227 288.3);
Tailwind
colors: {
  custom: {
    50: '#a985f7',
    500: '#7952f2',
    950: '#000000',
  },
}
SCSS
$custom: #7952f2;
$custom-light: #a985f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7952f2",
  "rgb": {
    "r": 121,
    "g": 82,
    "b": 242
  },
  "hsl": {
    "h": 254.625,
    "s": 86.022,
    "l": 63.529
  },
  "oklch": {
    "l": 0.57197,
    "c": 0.22654,
    "h": 288.3
  },
  "luminance": 0.1651
}

Semantic roles & 50–950 ramp

primary
#7952F2
secondary
#DEECB4
accent
#E303AC
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7952F2

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

Preview Lab → · Contrast checker → · Palette generator →

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