#7948B8#7948B8

#7948B8 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.4% C 0.171 H 300.7°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7948B8
RGBrgb(121, 72, 184)
HSLhsl(266, 44%, 50%)
HSVhsv(266, 61%, 72%)
CMYKcmyk(34.2%, 60.9%, 0%, 27.8%)
CIE-LABlab(41.47, 43.88, -51.73)
CIE-LCHlch(41.47, 67.84, 310.30°)
OKLaboklab(51.42% 0.0871 -0.1468)
OKLCHoklch(51.42% 0.171 300.7)
XYZxyz(18.8522, 12.1603, 46.6921)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948B8 #87B848
analogous
#484FB8 #7948B8 #B148B8
triadic
#7948B8 #B87948 #48B879
tetradic
#7948B8 #B8484F #87B848 #48B8B1
square
#7948B8 #B8484F #87B848 #48B8B1
split-complementary
#7948B8 #B8B148 #4FB848
monochromatic
#3F2560 #5C368C #7948B8 #9974C9 #BAA0DA

Accessibility & contrast

On white

6.12
#7948B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7948B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948B8
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948B8#FFFFFF#000000##FFFFFF
##7948B81.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BC
Deuteranopia (green-blind)
#2361B6
Tritanopia (blue-blind)
#6C6079
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7948b8;
/* rgb */ color: rgb(121, 72, 184);
/* oklch */ color: oklch(51.4% 0.171 300.7);
Tailwind
colors: {
  custom: {
    50: '#a47dce',
    500: '#7948b8',
    950: '#000000',
  },
}
SCSS
$custom: #7948b8;
$custom-light: #a47dce;
$custom-dark: #000000;
JSON
{
  "hex": "#7948b8",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 184
  },
  "hsl": {
    "h": 266.25,
    "s": 44.094,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51421,
    "c": 0.17066,
    "h": 300.7
  },
  "luminance": 0.1216
}

Semantic roles & 50–950 ramp

primary
#7948B8
secondary
#B1C795
accent
#D4549C
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7948B8

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

Preview Lab → · Contrast checker → · Palette generator →

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