#7938AD#7938AD

#7938AD is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.4% C 0.180 H 306.2°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#7938AD
RGBrgb(121, 56, 173)
HSLhsl(273, 51%, 45%)
HSVhsv(273, 68%, 68%)
CMYKcmyk(30.1%, 67.6%, 0%, 32.2%)
CIE-LABlab(37.68, 49.44, -51.34)
CIE-LCHlch(37.68, 71.28, 313.92°)
OKLaboklab(48.45% 0.1067 -0.1456)
OKLCHoklch(48.45% 0.18 306.2)
XYZxyz(16.8405, 9.9106, 40.5528)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7938AD #6CAD38
analogous
#3E38AD #7938AD #AD38A7
triadic
#7938AD #AD7938 #38AD79
tetradic
#7938AD #AD3E38 #6CAD38 #38A7AD
square
#7938AD #AD3E38 #6CAD38 #38A7AD
split-complementary
#7938AD #A7AD38 #38AD3E
monochromatic
#381A51 #59297F #7938AD #9759C9 #B487D8

Accessibility & contrast

On white

7.04
#7938AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7938AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7938AD
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7938AD#FFFFFF#000000##FFFFFF
##7938AD1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B1
Deuteranopia (green-blind)
#1859AA
Tritanopia (blue-blind)
#70526E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7938ad;
/* rgb */ color: rgb(121, 56, 173);
/* oklch */ color: oklch(48.4% 0.180 306.2);
Tailwind
colors: {
  custom: {
    50: '#a473c6',
    500: '#7938ad',
    950: '#000000',
  },
}
SCSS
$custom: #7938ad;
$custom-light: #a473c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7938ad",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 173
  },
  "hsl": {
    "h": 273.333,
    "s": 51.092,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48445,
    "c": 0.18048,
    "h": 306.2
  },
  "luminance": 0.0991
}

Semantic roles & 50–950 ramp

primary
#7938AD
secondary
#9DC27F
accent
#DB4D8C
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7938AD

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

Preview Lab → · Contrast checker → · Palette generator →

#7938AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva