#7948C4#7948C4

#7948C4 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.3% C 0.185 H 297.9°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#7948C4
RGBrgb(121, 72, 196)
HSLhsl(264, 51%, 53%)
HSVhsv(264, 63%, 77%)
CMYKcmyk(38.3%, 63.3%, 0%, 23.1%)
CIE-LABlab(42.28, 46.98, -57.43)
CIE-LCHlch(42.28, 74.19, 309.28°)
OKLaboklab(52.27% 0.0864 -0.1635)
OKLCHoklch(52.27% 0.185 297.9)
XYZxyz(20.1638, 12.6849, 53.5999)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948C4 #93C448
analogous
#4855C4 #7948C4 #B748C4
triadic
#7948C4 #C47948 #48C479
tetradic
#7948C4 #C44855 #93C448 #48C4B7
square
#7948C4 #C44855 #93C448 #48C4B7
split-complementary
#7948C4 #C4B748 #55C448
monochromatic
#41236E #5C329C #7948C4 #9B76D3 #BDA5E2

Accessibility & contrast

On white

5.94
#7948C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7948C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948C4
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948C4#FFFFFF#000000##FFFFFF
##7948C41.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C8
Deuteranopia (green-blind)
#0162C1
Tritanopia (blue-blind)
#67647F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7948c4;
/* rgb */ color: rgb(121, 72, 196);
/* oklch */ color: oklch(52.3% 0.185 297.9);
Tailwind
colors: {
  custom: {
    50: '#a57ed7',
    500: '#7948c4',
    950: '#000000',
  },
}
SCSS
$custom: #7948c4;
$custom-light: #a57ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#7948c4",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 196
  },
  "hsl": {
    "h": 263.71,
    "s": 51.24,
    "l": 52.549
  },
  "oklch": {
    "l": 0.52272,
    "c": 0.18492,
    "h": 297.9
  },
  "luminance": 0.12685
}

Semantic roles & 50–950 ramp

primary
#7948C4
secondary
#BACF99
accent
#DB4DA3
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7948C4

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

Preview Lab → · Contrast checker → · Palette generator →

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