#7947AB#7947AB

#7947AB is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.4% C 0.157 H 304.4°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#7947AB
RGBrgb(121, 71, 171)
HSLhsl(270, 41%, 47%)
HSVhsv(270, 58%, 67%)
CMYKcmyk(29.2%, 58.5%, 0%, 32.9%)
CIE-LABlab(40.43, 41.15, -45.73)
CIE-LCHlch(40.43, 61.52, 311.98°)
OKLaboklab(50.39% 0.0886 -0.1291)
OKLCHoklch(50.39% 0.157 304.4)
XYZxyz(17.4875, 11.5118, 39.8209)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7947AB #79AB47
analogous
#4747AB #7947AB #AB47AB
triadic
#7947AB #AB7947 #47AB79
tetradic
#7947AB #AB4747 #79AB47 #47ABAB
square
#7947AB #AB4747 #79AB47 #47ABAB
split-complementary
#7947AB #ABAB47 #47AB47
monochromatic
#3C2355 #5A3580 #7947AB #986DC2 #B698D4

Accessibility & contrast

On white

6.36
#7947AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7947AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7947AB
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7947AB#FFFFFF#000000##FFFFFF
##7947AB1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5EAE
Deuteranopia (green-blind)
#325FA9
Tritanopia (blue-blind)
#705B72
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7947ab;
/* rgb */ color: rgb(121, 71, 171);
/* oklch */ color: oklch(50.4% 0.157 304.4);
Tailwind
colors: {
  custom: {
    50: '#a37cc4',
    500: '#7947ab',
    950: '#000000',
  },
}
SCSS
$custom: #7947ab;
$custom-light: #a37cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7947ab",
  "rgb": {
    "r": 121,
    "g": 71,
    "b": 171
  },
  "hsl": {
    "h": 270,
    "s": 41.322,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50394,
    "c": 0.15659,
    "h": 304.4
  },
  "luminance": 0.11512
}

Semantic roles & 50–950 ramp

primary
#7947AB
secondary
#A7C08D
accent
#D15794
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #7947AB

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

Preview Lab → · Contrast checker → · Palette generator →

#7947AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva