#7948A6#7948A6

#7948A6 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.2% C 0.149 H 305.8°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#7948A6
RGBrgb(121, 72, 166)
HSLhsl(271, 39%, 47%)
HSVhsv(271, 57%, 65%)
CMYKcmyk(27.1%, 56.6%, 0%, 34.9%)
CIE-LABlab(40.33, 39.36, -42.91)
CIE-LCHlch(40.33, 58.23, 312.53°)
OKLaboklab(50.22% 0.0871 -0.1209)
OKLCHoklch(50.22% 0.149 305.8)
XYZxyz(17.0840, 11.4530, 37.3796)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948A6 #75A648
analogous
#4A48A6 #7948A6 #A648A4
triadic
#7948A6 #A67948 #48A679
tetradic
#7948A6 #A64A48 #75A648 #48A4A6
square
#7948A6 #A64A48 #75A648 #48A4A6
split-complementary
#7948A6 #A4A648 #48A64A
monochromatic
#3B2351 #5A357B #7948A6 #976CBF #B597D2

Accessibility & contrast

On white

6.38
#7948A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#7948A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948A6
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948A6#FFFFFF#000000##FFFFFF
##7948A61.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265DA9
Deuteranopia (green-blind)
#385FA4
Tritanopia (blue-blind)
#725A70
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7948a6;
/* rgb */ color: rgb(121, 72, 166);
/* oklch */ color: oklch(50.2% 0.149 305.8);
Tailwind
colors: {
  custom: {
    50: '#a27dc1',
    500: '#7948a6',
    950: '#000000',
  },
}
SCSS
$custom: #7948a6;
$custom-light: #a27dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#7948a6",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 166
  },
  "hsl": {
    "h": 271.277,
    "s": 39.496,
    "l": 46.667
  },
  "oklch": {
    "l": 0.50225,
    "c": 0.14901,
    "h": 305.8
  },
  "luminance": 0.11453
}

Semantic roles & 50–950 ramp

primary
#7948A6
secondary
#A4BE8C
accent
#CF5891
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7948A6

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

Preview Lab → · Contrast checker → · Palette generator →

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