#7938AC#7938AC

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

Color values

HEX#7938AC
RGBrgb(121, 56, 172)
HSLhsl(274, 51%, 45%)
HSVhsv(274, 67%, 67%)
CMYKcmyk(29.7%, 67.4%, 0%, 32.5%)
CIE-LABlab(37.61, 49.21, -50.86)
CIE-LCHlch(37.61, 70.77, 314.05°)
OKLaboklab(48.37% 0.1068 -0.1441)
OKLCHoklch(48.37% 0.179 306.5)
XYZxyz(16.7441, 9.8720, 40.0451)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7938AC #6BAC38
analogous
#3F38AC #7938AC #AC38A5
triadic
#7938AC #AC7938 #38AC79
tetradic
#7938AC #AC3F38 #6BAC38 #38A5AC
square
#7938AC #AC3F38 #6BAC38 #38A5AC
split-complementary
#7938AC #A5AC38 #38AC3F
monochromatic
#381A50 #59297E #7938AC #9758C9 #B487D8

Accessibility & contrast

On white

7.06
#7938AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7938AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7938AC
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7938AC#FFFFFF#000000##FFFFFF
##7938AC1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AF
Deuteranopia (green-blind)
#1A59A9
Tritanopia (blue-blind)
#70516D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7938ac;
/* rgb */ color: rgb(121, 56, 172);
/* oklch */ color: oklch(48.4% 0.179 306.5);
Tailwind
colors: {
  custom: {
    50: '#a473c5',
    500: '#7938ac',
    950: '#000000',
  },
}
SCSS
$custom: #7938ac;
$custom-light: #a473c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7938ac",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 273.621,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48373,
    "c": 0.1794,
    "h": 306.5
  },
  "luminance": 0.09872
}

Semantic roles & 50–950 ramp

primary
#7938AC
secondary
#9CC27E
accent
#DA4D8B
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7938AC

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

Preview Lab → · Contrast checker → · Palette generator →

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