#7948E2#7948E2

#7948E2 is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.6% C 0.220 H 292.1°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#7948E2
RGBrgb(121, 72, 226)
HSLhsl(259, 73%, 58%)
HSVhsv(259, 68%, 89%)
CMYKcmyk(46.5%, 68.1%, 0%, 11.4%)
CIE-LABlab(44.50, 54.91, -71.06)
CIE-LCHlch(44.50, 89.80, 307.70°)
OKLaboklab(54.57% 0.0827 -0.2036)
OKLCHoklch(54.57% 0.22 292.1)
XYZxyz(23.9262, 14.1898, 73.4150)
Luminance0.1419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948E2 #B1E248
analogous
#4864E2 #7948E2 #C648E2
triadic
#7948E2 #E27948 #48E279
tetradic
#7948E2 #E24864 #B1E248 #48E2C6
square
#7948E2 #E24864 #B1E248 #48E2C6
split-complementary
#7948E2 #E2C648 #64E248
monochromatic
#411898 #5720CC #7948E2 #A07DEA #C6B2F3

Accessibility & contrast

On white

5.47
#7948E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#7948E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948E2
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948E2#FFFFFF#000000##FFFFFF
##7948E21.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE7
Deuteranopia (green-blind)
#0066DF
Tritanopia (blue-blind)
#596F90
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7948e2;
/* rgb */ color: rgb(121, 72, 226);
/* oklch */ color: oklch(54.6% 0.220 292.1);
Tailwind
colors: {
  custom: {
    50: '#a87eec',
    500: '#7948e2',
    950: '#000000',
  },
}
SCSS
$custom: #7948e2;
$custom-light: #a87eec;
$custom-dark: #000000;
JSON
{
  "hex": "#7948e2",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 226
  },
  "hsl": {
    "h": 259.091,
    "s": 72.642,
    "l": 58.431
  },
  "oklch": {
    "l": 0.54565,
    "c": 0.21974,
    "h": 292.1
  },
  "luminance": 0.14191
}

Semantic roles & 50–950 ramp

primary
#7948E2
secondary
#CEE1A4
accent
#EF38B5
background
#FAF7FE
surface
#F5EEFD
border
#CFC9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7948E2

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

Preview Lab → · Contrast checker → · Palette generator →

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