#7948B1#7948B1

#7948B1 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 50.9% C 0.162 H 302.5°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#7948B1
RGBrgb(121, 72, 177)
HSLhsl(268, 42%, 49%)
HSVhsv(268, 59%, 69%)
CMYKcmyk(31.6%, 59.3%, 0%, 30.6%)
CIE-LABlab(41.02, 42.10, -48.34)
CIE-LCHlch(41.02, 64.11, 311.05°)
OKLaboklab(50.94% 0.0873 -0.1368)
OKLCHoklch(50.94% 0.162 302.5)
XYZxyz(18.1365, 11.8740, 42.9229)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948B1 #80B148
analogous
#484CB1 #7948B1 #AE48B1
triadic
#7948B1 #B17948 #48B179
tetradic
#7948B1 #B1484C #80B148 #48B1AE
square
#7948B1 #B1484C #80B148 #48B1AE
split-complementary
#7948B1 #B1AE48 #4CB148
monochromatic
#3E255A #5B3685 #7948B1 #9871C5 #B89CD7

Accessibility & contrast

On white

6.22
#7948B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7948B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948B1
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948B1#FFFFFF#000000##FFFFFF
##7948B11.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1560B4
Deuteranopia (green-blind)
#2D60AF
Tritanopia (blue-blind)
#6E5D75
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7948b1;
/* rgb */ color: rgb(121, 72, 177);
/* oklch */ color: oklch(50.9% 0.162 302.5);
Tailwind
colors: {
  custom: {
    50: '#a37dc9',
    500: '#7948b1',
    950: '#000000',
  },
}
SCSS
$custom: #7948b1;
$custom-light: #a37dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7948b1",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 177
  },
  "hsl": {
    "h": 268,
    "s": 42.169,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50944,
    "c": 0.16227,
    "h": 302.5
  },
  "luminance": 0.11874
}

Semantic roles & 50–950 ramp

primary
#7948B1
secondary
#ACC391
accent
#D25698
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #7948B1

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

Preview Lab → · Contrast checker → · Palette generator →

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