#7948AA#7948AA

#7948AA is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.5% C 0.154 H 304.5°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#7948AA
RGBrgb(121, 72, 170)
HSLhsl(270, 40%, 47%)
HSVhsv(270, 58%, 67%)
CMYKcmyk(28.8%, 57.6%, 0%, 33.3%)
CIE-LABlab(40.58, 40.35, -44.90)
CIE-LCHlch(40.58, 60.37, 311.94°)
OKLaboklab(50.48% 0.0872 -0.1267)
OKLCHoklch(50.48% 0.154 304.5)
XYZxyz(17.4566, 11.6020, 39.3422)
Luminance0.1160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948AA #79AA48
analogous
#4848AA #7948AA #AA48AA
triadic
#7948AA #AA7948 #48AA79
tetradic
#7948AA #AA4848 #79AA48 #48AAAA
square
#7948AA #AA4848 #79AA48 #48AAAA
split-complementary
#7948AA #AAAA48 #48AA48
monochromatic
#3C2454 #5A367F #7948AA #986EC1 #B699D4

Accessibility & contrast

On white

6.32
#7948AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7948AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7948AA#FFFFFF#000000##FFFFFF
##7948AA1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215EAD
Deuteranopia (green-blind)
#3460A8
Tritanopia (blue-blind)
#705B72
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7948aa;
/* rgb */ color: rgb(121, 72, 170);
/* oklch */ color: oklch(50.5% 0.154 304.5);
Tailwind
colors: {
  custom: {
    50: '#a37dc4',
    500: '#7948aa',
    950: '#000000',
  },
}
SCSS
$custom: #7948aa;
$custom-light: #a37dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7948aa",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 170
  },
  "hsl": {
    "h": 270,
    "s": 40.496,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50482,
    "c": 0.15384,
    "h": 304.5
  },
  "luminance": 0.11602
}

Semantic roles & 50–950 ramp

primary
#7948AA
secondary
#A7C08E
accent
#D05794
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #7948AA

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

Preview Lab → · Contrast checker → · Palette generator →

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