#7948E7#7948E7

#7948E7 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.0% C 0.225 H 291.3°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7948E7
RGBrgb(121, 72, 231)
HSLhsl(258, 77%, 59%)
HSVhsv(258, 69%, 91%)
CMYKcmyk(47.6%, 68.8%, 0%, 9.4%)
CIE-LABlab(44.90, 56.25, -73.25)
CIE-LCHlch(44.90, 92.36, 307.52°)
OKLaboklab(54.97% 0.0819 -0.21)
OKLCHoklch(54.97% 0.225 291.3)
XYZxyz(24.6223, 14.4683, 77.0811)
Luminance0.1447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948E7 #B6E748
analogous
#4866E7 #7948E7 #C948E7
triadic
#7948E7 #E77948 #48E779
tetradic
#7948E7 #E74866 #B6E748 #48E7C9
square
#7948E7 #E74866 #B6E748 #48E7C9
split-complementary
#7948E7 #E7C948 #66E748
monochromatic
#4015A0 #551CD6 #7948E7 #A17EEE #C8B4F5

Accessibility & contrast

On white

5.39
#7948E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7948E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948E7
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948E7#FFFFFF#000000##FFFFFF
##7948E71.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DEC
Deuteranopia (green-blind)
#0067E4
Tritanopia (blue-blind)
#567092
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7948e7;
/* rgb */ color: rgb(121, 72, 231);
/* oklch */ color: oklch(55.0% 0.225 291.3);
Tailwind
colors: {
  custom: {
    50: '#a97ff0',
    500: '#7948e7',
    950: '#000000',
  },
}
SCSS
$custom: #7948e7;
$custom-light: #a97ff0;
$custom-dark: #000000;
JSON
{
  "hex": "#7948e7",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 231
  },
  "hsl": {
    "h": 258.491,
    "s": 76.812,
    "l": 59.412
  },
  "oklch": {
    "l": 0.54968,
    "c": 0.22541,
    "h": 291.3
  },
  "luminance": 0.14469
}

Semantic roles & 50–950 ramp

primary
#7948E7
secondary
#D1E4A6
accent
#F334B9
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A17
muted
#807C85

Preview Lab

Preview with #7948E7

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

Preview Lab → · Contrast checker → · Palette generator →

#7948E7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva