#7948C0#7948C0

#7948C0 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.0% C 0.180 H 298.8°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#7948C0
RGBrgb(121, 72, 192)
HSLhsl(265, 49%, 52%)
HSVhsv(265, 63%, 75%)
CMYKcmyk(37%, 62.5%, 0%, 24.7%)
CIE-LABlab(42.01, 45.94, -55.55)
CIE-LCHlch(42.01, 72.08, 309.59°)
OKLaboklab(51.98% 0.0867 -0.158)
OKLCHoklch(51.98% 0.18 298.8)
XYZxyz(19.7146, 12.5052, 51.2340)
Luminance0.1250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948C0 #8FC048
analogous
#4853C0 #7948C0 #B548C0
triadic
#7948C0 #C07948 #48C079
tetradic
#7948C0 #C04853 #8FC048 #48C0B5
square
#7948C0 #C04853 #8FC048 #48C0B5
split-complementary
#7948C0 #C0B548 #53C048
monochromatic
#402469 #5C3497 #7948C0 #9A76D0 #BCA3DF

Accessibility & contrast

On white

6.00
#7948C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7948C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948C0
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948C0#FFFFFF#000000##FFFFFF
##7948C01.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C4
Deuteranopia (green-blind)
#1262BD
Tritanopia (blue-blind)
#69627D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7948c0;
/* rgb */ color: rgb(121, 72, 192);
/* oklch */ color: oklch(52.0% 0.180 298.8);
Tailwind
colors: {
  custom: {
    50: '#a47dd4',
    500: '#7948c0',
    950: '#000000',
  },
}
SCSS
$custom: #7948c0;
$custom-light: #a47dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#7948c0",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 192
  },
  "hsl": {
    "h": 264.5,
    "s": 48.78,
    "l": 51.765
  },
  "oklch": {
    "l": 0.51984,
    "c": 0.18019,
    "h": 298.8
  },
  "luminance": 0.12505
}

Semantic roles & 50–950 ramp

primary
#7948C0
secondary
#B7CC98
accent
#D84FA0
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7948C0

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

Preview Lab → · Contrast checker → · Palette generator →

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