#7948BA#7948BA

#7948BA is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.6% C 0.173 H 300.2°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#7948BA
RGBrgb(121, 72, 186)
HSLhsl(266, 45%, 51%)
HSVhsv(266, 61%, 73%)
CMYKcmyk(34.9%, 61.3%, 0%, 27.1%)
CIE-LABlab(41.60, 44.39, -52.69)
CIE-LCHlch(41.60, 68.90, 310.11°)
OKLaboklab(51.56% 0.087 -0.1496)
OKLCHoklch(51.56% 0.173 300.2)
XYZxyz(19.0633, 12.2447, 47.8040)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948BA #89BA48
analogous
#4850BA #7948BA #B248BA
triadic
#7948BA #BA7948 #48BA79
tetradic
#7948BA #BA4850 #89BA48 #48BAB2
square
#7948BA #BA4850 #89BA48 #48BAB2
split-complementary
#7948BA #BAB248 #50BA48
monochromatic
#3F2562 #5C368F #7948BA #9A74CB #BAA1DC

Accessibility & contrast

On white

6.09
#7948BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7948BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948BA
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948BA#FFFFFF#000000##FFFFFF
##7948BA1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#1F61B7
Tritanopia (blue-blind)
#6B607A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7948ba;
/* rgb */ color: rgb(121, 72, 186);
/* oklch */ color: oklch(51.6% 0.173 300.2);
Tailwind
colors: {
  custom: {
    50: '#a47dcf',
    500: '#7948ba',
    950: '#000000',
  },
}
SCSS
$custom: #7948ba;
$custom-light: #a47dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7948ba",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 186
  },
  "hsl": {
    "h": 265.789,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5156,
    "c": 0.17305,
    "h": 300.2
  },
  "luminance": 0.12245
}

Semantic roles & 50–950 ramp

primary
#7948BA
secondary
#B2C896
accent
#D5539D
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7948BA

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

Preview Lab → · Contrast checker → · Palette generator →

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