#7948B5#7948B5

#7948B5 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.2% C 0.167 H 301.5°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#7948B5
RGBrgb(121, 72, 181)
HSLhsl(267, 43%, 50%)
HSVhsv(267, 60%, 71%)
CMYKcmyk(33.1%, 60.2%, 0%, 29%)
CIE-LABlab(41.27, 43.11, -50.29)
CIE-LCHlch(41.27, 66.24, 310.61°)
OKLaboklab(51.22% 0.0872 -0.1425)
OKLCHoklch(51.22% 0.167 301.5)
XYZxyz(18.5410, 12.0358, 45.0534)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948B5 #84B548
analogous
#484EB5 #7948B5 #AF48B5
triadic
#7948B5 #B57948 #48B579
tetradic
#7948B5 #B5484E #84B548 #48B5AF
square
#7948B5 #B5484E #84B548 #48B5AF
split-complementary
#7948B5 #B5AF48 #4EB548
monochromatic
#3E255D #5C3789 #7948B5 #9973C7 #B99FD9

Accessibility & contrast

On white

6.16
#7948B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7948B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948B5
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948B5#FFFFFF#000000##FFFFFF
##7948B51.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0961B9
Deuteranopia (green-blind)
#2761B3
Tritanopia (blue-blind)
#6D5F77
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7948b5;
/* rgb */ color: rgb(121, 72, 181);
/* oklch */ color: oklch(51.2% 0.167 301.5);
Tailwind
colors: {
  custom: {
    50: '#a47dcc',
    500: '#7948b5',
    950: '#000000',
  },
}
SCSS
$custom: #7948b5;
$custom-light: #a47dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7948b5",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 181
  },
  "hsl": {
    "h": 266.972,
    "s": 43.083,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51215,
    "c": 0.16707,
    "h": 301.5
  },
  "luminance": 0.12036
}

Semantic roles & 50–950 ramp

primary
#7948B5
secondary
#AFC593
accent
#D3559A
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7948B5

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

Preview Lab → · Contrast checker → · Palette generator →

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