#7948AC#7948AC

#7948AC is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.6% C 0.156 H 303.9°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#7948AC
RGBrgb(121, 72, 172)
HSLhsl(269, 41%, 48%)
HSVhsv(269, 58%, 67%)
CMYKcmyk(29.7%, 58.1%, 0%, 32.5%)
CIE-LABlab(40.70, 40.85, -45.89)
CIE-LCHlch(40.70, 61.44, 311.67°)
OKLaboklab(50.61% 0.0873 -0.1296)
OKLCHoklch(50.61% 0.156 303.9)
XYZxyz(17.6473, 11.6783, 40.3462)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948AC #7BAC48
analogous
#4849AC #7948AC #AB48AC
triadic
#7948AC #AC7948 #48AC79
tetradic
#7948AC #AC4849 #7BAC48 #48ACAB
square
#7948AC #AC4849 #7BAC48 #48ACAB
split-complementary
#7948AC #ACAB48 #49AC48
monochromatic
#3C2456 #5B3681 #7948AC #986FC3 #B79AD5

Accessibility & contrast

On white

6.30
#7948AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7948AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7948AC
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7948AC#FFFFFF#000000##FFFFFF
##7948AC1.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5FAF
Deuteranopia (green-blind)
#3260AA
Tritanopia (blue-blind)
#705C73
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7948ac;
/* rgb */ color: rgb(121, 72, 172);
/* oklch */ color: oklch(50.6% 0.156 303.9);
Tailwind
colors: {
  custom: {
    50: '#a37dc5',
    500: '#7948ac',
    950: '#000000',
  },
}
SCSS
$custom: #7948ac;
$custom-light: #a37dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7948ac",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 172
  },
  "hsl": {
    "h": 269.4,
    "s": 40.984,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50613,
    "c": 0.15626,
    "h": 303.9
  },
  "luminance": 0.11678
}

Semantic roles & 50–950 ramp

primary
#7948AC
secondary
#A8C18F
accent
#D15795
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #7948AC

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

Preview Lab → · Contrast checker → · Palette generator →

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