#7948C3#7948C3

#7948C3 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.2% C 0.184 H 298.1°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#7948C3
RGBrgb(121, 72, 195)
HSLhsl(264, 51%, 52%)
HSVhsv(264, 63%, 76%)
CMYKcmyk(37.9%, 63.1%, 0%, 23.5%)
CIE-LABlab(42.22, 46.72, -56.96)
CIE-LCHlch(42.22, 73.67, 309.36°)
OKLaboklab(52.2% 0.0865 -0.1621)
OKLCHoklch(52.2% 0.184 298.1)
XYZxyz(20.0504, 12.6395, 53.0025)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948C3 #92C348
analogous
#4855C3 #7948C3 #B648C3
triadic
#7948C3 #C37948 #48C379
tetradic
#7948C3 #C34855 #92C348 #48C3B6
square
#7948C3 #C34855 #92C348 #48C3B6
split-complementary
#7948C3 #C3B648 #55C348
monochromatic
#41246D #5C339B #7948C3 #9B76D2 #BCA4E1

Accessibility & contrast

On white

5.95
#7948C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7948C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948C3
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948C3#FFFFFF#000000##FFFFFF
##7948C31.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C7
Deuteranopia (green-blind)
#0562C0
Tritanopia (blue-blind)
#68637F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7948c3;
/* rgb */ color: rgb(121, 72, 195);
/* oklch */ color: oklch(52.2% 0.184 298.1);
Tailwind
colors: {
  custom: {
    50: '#a57ed6',
    500: '#7948c3',
    950: '#000000',
  },
}
SCSS
$custom: #7948c3;
$custom-light: #a57ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#7948c3",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 195
  },
  "hsl": {
    "h": 263.902,
    "s": 50.617,
    "l": 52.353
  },
  "oklch": {
    "l": 0.522,
    "c": 0.18374,
    "h": 298.1
  },
  "luminance": 0.1264
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7948C3

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

Preview Lab → · Contrast checker → · Palette generator →

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