#7948C1#7948C1

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

Color values

HEX#7948C1
RGBrgb(121, 72, 193)
HSLhsl(264, 49%, 52%)
HSVhsv(264, 63%, 76%)
CMYKcmyk(37.3%, 62.7%, 0%, 24.3%)
CIE-LABlab(42.08, 46.20, -56.02)
CIE-LCHlch(42.08, 72.61, 309.51°)
OKLaboklab(52.06% 0.0866 -0.1594)
OKLCHoklch(52.06% 0.181 298.5)
XYZxyz(19.8258, 12.5497, 51.8195)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948C1 #90C148
analogous
#4853C1 #7948C1 #B648C1
triadic
#7948C1 #C17948 #48C179
tetradic
#7948C1 #C14853 #90C148 #48C1B6
square
#7948C1 #C14853 #90C148 #48C1B6
split-complementary
#7948C1 #C1B648 #53C148
monochromatic
#41246B #5C3498 #7948C1 #9A76D0 #BCA3E0

Accessibility & contrast

On white

5.98
#7948C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7948C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948C1
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948C1#FFFFFF#000000##FFFFFF
##7948C11.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C5
Deuteranopia (green-blind)
#0E62BE
Tritanopia (blue-blind)
#68637E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7948c1;
/* rgb */ color: rgb(121, 72, 193);
/* oklch */ color: oklch(52.1% 0.181 298.5);
Tailwind
colors: {
  custom: {
    50: '#a57dd4',
    500: '#7948c1',
    950: '#000000',
  },
}
SCSS
$custom: #7948c1;
$custom-light: #a57dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#7948c1",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 193
  },
  "hsl": {
    "h": 264.298,
    "s": 49.388,
    "l": 51.961
  },
  "oklch": {
    "l": 0.52056,
    "c": 0.18138,
    "h": 298.5
  },
  "luminance": 0.1255
}

Semantic roles & 50–950 ramp

primary
#7948C1
secondary
#B7CD98
accent
#D94FA1
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7948C1

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

Preview Lab → · Contrast checker → · Palette generator →

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