#7948A2#7948A2

#7948A2 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.0% C 0.144 H 307.1°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#7948A2
RGBrgb(121, 72, 162)
HSLhsl(273, 38%, 46%)
HSVhsv(273, 56%, 64%)
CMYKcmyk(25.3%, 55.6%, 0%, 36.5%)
CIE-LABlab(40.10, 38.38, -40.91)
CIE-LCHlch(40.10, 56.10, 313.18°)
OKLaboklab(49.97% 0.087 -0.115)
OKLCHoklch(49.97% 0.144 307.1)
XYZxyz(16.7228, 11.3085, 35.4772)
Luminance0.1131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7948A2 #71A248
analogous
#4C48A2 #7948A2 #A2489E
triadic
#7948A2 #A27948 #48A279
tetradic
#7948A2 #A24C48 #71A248 #489EA2
square
#7948A2 #A24C48 #71A248 #489EA2
split-complementary
#7948A2 #9EA248 #48A24C
monochromatic
#3A224D #593578 #7948A2 #976ABD #B595D0

Accessibility & contrast

On white

6.44
#7948A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7948A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7948A2#FFFFFF#000000##FFFFFF
##7948A21.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5DA5
Deuteranopia (green-blind)
#3B5FA0
Tritanopia (blue-blind)
#73586E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7948a2;
/* rgb */ color: rgb(121, 72, 162);
/* oklch */ color: oklch(50.0% 0.144 307.1);
Tailwind
colors: {
  custom: {
    50: '#a27dbe',
    500: '#7948a2',
    950: '#000000',
  },
}
SCSS
$custom: #7948a2;
$custom-light: #a27dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7948a2",
  "rgb": {
    "r": 121,
    "g": 72,
    "b": 162
  },
  "hsl": {
    "h": 272.667,
    "s": 38.462,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49973,
    "c": 0.14419,
    "h": 307.1
  },
  "luminance": 0.11308
}

Semantic roles & 50–950 ramp

primary
#7948A2
secondary
#A1BC8A
accent
#CE598F
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7948A2

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

Preview Lab → · Contrast checker → · Palette generator →

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