#7938BA#7938BA

#7938BA is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.4% C 0.194 H 302.7°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#7938BA
RGBrgb(121, 56, 186)
HSLhsl(270, 54%, 47%)
HSVhsv(270, 70%, 73%)
CMYKcmyk(34.9%, 69.9%, 0%, 27.1%)
CIE-LABlab(38.62, 52.56, -57.52)
CIE-LCHlch(38.62, 77.92, 312.42°)
OKLaboklab(49.41% 0.105 -0.1637)
OKLCHoklch(49.41% 0.194 302.7)
XYZxyz(18.1602, 10.4384, 47.5029)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7938BA #79BA38
analogous
#3838BA #7938BA #BA38BA
triadic
#7938BA #BA7938 #38BA79
tetradic
#7938BA #BA3838 #79BA38 #38BABA
square
#7938BA #BA3838 #79BA38 #38BABA
split-complementary
#7938BA #BABA38 #38BA38
monochromatic
#3C1C5C #5A2A8B #7938BA #9860CF #B68FDD

Accessibility & contrast

On white

6.80
#7938BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7938BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7938BA
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7938BA#FFFFFF#000000##FFFFFF
##7938BA1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#005BB7
Tritanopia (blue-blind)
#6C5775
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7938ba;
/* rgb */ color: rgb(121, 56, 186);
/* oklch */ color: oklch(49.4% 0.194 302.7);
Tailwind
colors: {
  custom: {
    50: '#a574d0',
    500: '#7938ba',
    950: '#000000',
  },
}
SCSS
$custom: #7938ba;
$custom-light: #a574d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7938ba",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 270,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.4941,
    "c": 0.19448,
    "h": 302.7
  },
  "luminance": 0.10438
}

Semantic roles & 50–950 ramp

primary
#7938BA
secondary
#A7C886
accent
#DD4B94
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7938BA

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

Preview Lab → · Contrast checker → · Palette generator →

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