#7948C6#7948C6

#7948C6 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.4% C 0.187 H 297.4°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#7948C6
RGBrgb(121, 72, 198)
HSLhsl(263, 53%, 53%)
HSVhsv(263, 64%, 78%)
CMYKcmyk(38.9%, 63.6%, 0%, 22.4%)
CIE-LABlab(42.42, 47.50, -58.36)
CIE-LCHlch(42.42, 75.25, 309.14°)
OKLaboklab(52.42% 0.0862 -0.1662)
OKLCHoklch(52.42% 0.187 297.4)
XYZxyz(20.3930, 12.7766, 54.8068)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948C6 #95C648
analogous
#4856C6 #7948C6 #B848C6
triadic
#7948C6 #C67948 #48C679
tetradic
#7948C6 #C64856 #95C648 #48C6B8
square
#7948C6 #C64856 #95C648 #48C6B8
split-complementary
#7948C6 #C6B848 #56C648
monochromatic
#412371 #5C329F #7948C6 #9B77D5 #BDA5E3

Accessibility & contrast

On white

5.91
#7948C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7948C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948C6
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948C6#FFFFFF#000000##FFFFFF
##7948C61.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CA
Deuteranopia (green-blind)
#0063C3
Tritanopia (blue-blind)
#666480
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7948c6;
/* rgb */ color: rgb(121, 72, 198);
/* oklch */ color: oklch(52.4% 0.187 297.4);
Tailwind
colors: {
  custom: {
    50: '#a57ed8',
    500: '#7948c6',
    950: '#000000',
  },
}
SCSS
$custom: #7948c6;
$custom-light: #a57ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#7948c6",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 198
  },
  "hsl": {
    "h": 263.333,
    "s": 52.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52418,
    "c": 0.18728,
    "h": 297.4
  },
  "luminance": 0.12777
}

Semantic roles & 50–950 ramp

primary
#7948C6
secondary
#BBD09A
accent
#DC4CA4
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7948C6

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

Preview Lab → · Contrast checker → · Palette generator →

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