#7948B4#7948B4

#7948B4 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.1% C 0.166 H 301.7°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#7948B4
RGBrgb(121, 72, 180)
HSLhsl(267, 43%, 49%)
HSVhsv(267, 60%, 71%)
CMYKcmyk(32.8%, 60%, 0%, 29.4%)
CIE-LABlab(41.21, 42.86, -49.80)
CIE-LCHlch(41.21, 65.71, 310.71°)
OKLaboklab(51.15% 0.0872 -0.1411)
OKLCHoklch(51.15% 0.166 301.7)
XYZxyz(18.4388, 11.9949, 44.5150)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948B4 #83B448
analogous
#484DB4 #7948B4 #AF48B4
triadic
#7948B4 #B47948 #48B479
tetradic
#7948B4 #B4484D #83B448 #48B4AF
square
#7948B4 #B4484D #83B448 #48B4AF
split-complementary
#7948B4 #B4AF48 #4DB448
monochromatic
#3E255D #5C3788 #7948B4 #9972C7 #B99ED8

Accessibility & contrast

On white

6.18
#7948B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7948B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948B4
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948B4#FFFFFF#000000##FFFFFF
##7948B41.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C60B7
Deuteranopia (green-blind)
#2961B2
Tritanopia (blue-blind)
#6D5E77
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7948b4;
/* rgb */ color: rgb(121, 72, 180);
/* oklch */ color: oklch(51.1% 0.166 301.7);
Tailwind
colors: {
  custom: {
    50: '#a37dcb',
    500: '#7948b4',
    950: '#000000',
  },
}
SCSS
$custom: #7948b4;
$custom-light: #a37dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7948b4",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 180
  },
  "hsl": {
    "h": 267.222,
    "s": 42.857,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51147,
    "c": 0.16588,
    "h": 301.7
  },
  "luminance": 0.11995
}

Semantic roles & 50–950 ramp

primary
#7948B4
secondary
#AEC593
accent
#D3559A
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #7948B4

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

Preview Lab → · Contrast checker → · Palette generator →

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