#7948C2#7948C2

#7948C2 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.1% C 0.183 H 298.3°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#7948C2
RGBrgb(121, 72, 194)
HSLhsl(264, 50%, 52%)
HSVhsv(264, 63%, 76%)
CMYKcmyk(37.6%, 62.9%, 0%, 23.9%)
CIE-LABlab(42.15, 46.46, -56.49)
CIE-LCHlch(42.15, 73.14, 309.43°)
OKLaboklab(52.13% 0.0865 -0.1607)
OKLCHoklch(52.13% 0.183 298.3)
XYZxyz(19.9377, 12.5945, 52.4090)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948C2 #91C248
analogous
#4854C2 #7948C2 #B648C2
triadic
#7948C2 #C27948 #48C279
tetradic
#7948C2 #C24854 #91C248 #48C2B6
square
#7948C2 #C24854 #91C248 #48C2B6
split-complementary
#7948C2 #C2B648 #54C248
monochromatic
#41246C #5C339A #7948C2 #9B76D1 #BCA4E1

Accessibility & contrast

On white

5.97
#7948C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7948C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948C2
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948C2#FFFFFF#000000##FFFFFF
##7948C21.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#0A62BF
Tritanopia (blue-blind)
#68637E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7948c2;
/* rgb */ color: rgb(121, 72, 194);
/* oklch */ color: oklch(52.1% 0.183 298.3);
Tailwind
colors: {
  custom: {
    50: '#a57ed5',
    500: '#7948c2',
    950: '#000000',
  },
}
SCSS
$custom: #7948c2;
$custom-light: #a57ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#7948c2",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 194
  },
  "hsl": {
    "h": 264.098,
    "s": 50,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52127,
    "c": 0.18256,
    "h": 298.3
  },
  "luminance": 0.12595
}

Semantic roles & 50–950 ramp

primary
#7948C2
secondary
#B8CE98
accent
#DA4EA2
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7948C2

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

Preview Lab → · Contrast checker → · Palette generator →

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