#7938AE#7938AE

#7938AE is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.5% C 0.182 H 306.0°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#7938AE
RGBrgb(121, 56, 174)
HSLhsl(273, 51%, 45%)
HSVhsv(273, 68%, 68%)
CMYKcmyk(30.5%, 67.8%, 0%, 31.8%)
CIE-LABlab(37.75, 49.68, -51.82)
CIE-LCHlch(37.75, 71.79, 313.79°)
OKLaboklab(48.52% 0.1066 -0.147)
OKLCHoklch(48.52% 0.182 306)
XYZxyz(16.9377, 9.9494, 41.0643)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7938AE #6DAE38
analogous
#3E38AE #7938AE #AE38A8
triadic
#7938AE #AE7938 #38AE79
tetradic
#7938AE #AE3E38 #6DAE38 #38A8AE
square
#7938AE #AE3E38 #6DAE38 #38A8AE
split-complementary
#7938AE #A8AE38 #38AE3E
monochromatic
#391A51 #592980 #7938AE #9759CA #B488D9

Accessibility & contrast

On white

7.02
#7938AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7938AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7938AE
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7938AE#FFFFFF#000000##FFFFFF
##7938AE1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B2
Deuteranopia (green-blind)
#1659AB
Tritanopia (blue-blind)
#70526E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7938ae;
/* rgb */ color: rgb(121, 56, 174);
/* oklch */ color: oklch(48.5% 0.182 306.0);
Tailwind
colors: {
  custom: {
    50: '#a473c7',
    500: '#7938ae',
    950: '#000000',
  },
}
SCSS
$custom: #7938ae;
$custom-light: #a473c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7938ae",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 273.051,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48517,
    "c": 0.18155,
    "h": 306
  },
  "luminance": 0.09949
}

Semantic roles & 50–950 ramp

primary
#7938AE
secondary
#9DC37F
accent
#DB4D8D
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7938AE

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

Preview Lab → · Contrast checker → · Palette generator →

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