#7938BD#7938BD

#7938BD is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.6% C 0.198 H 301.9°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#7938BD
RGBrgb(121, 56, 189)
HSLhsl(269, 54%, 48%)
HSVhsv(269, 70%, 74%)
CMYKcmyk(36%, 70.4%, 0%, 25.9%)
CIE-LABlab(38.84, 53.29, -58.92)
CIE-LCHlch(38.84, 79.44, 312.13°)
OKLaboklab(49.64% 0.1045 -0.1678)
OKLCHoklch(49.64% 0.198 301.9)
XYZxyz(18.4824, 10.5674, 49.2002)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7938BD #7CBD38
analogous
#383ABD #7938BD #BB38BD
triadic
#7938BD #BD7938 #38BD79
tetradic
#7938BD #BD383A #7CBD38 #38BDBB
square
#7938BD #BD383A #7CBD38 #38BDBB
split-complementary
#7938BD #BDBB38 #3ABD38
monochromatic
#3D1C5F #5B2A8E #7938BD #9862D0 #B791DE

Accessibility & contrast

On white

6.75
#7938BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7938BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7938BD
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7938BD#FFFFFF#000000##FFFFFF
##7938BD1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC1
Deuteranopia (green-blind)
#005BBA
Tritanopia (blue-blind)
#6B5877
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7938bd;
/* rgb */ color: rgb(121, 56, 189);
/* oklch */ color: oklch(49.6% 0.198 301.9);
Tailwind
colors: {
  custom: {
    50: '#a574d2',
    500: '#7938bd',
    950: '#000000',
  },
}
SCSS
$custom: #7938bd;
$custom-light: #a574d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7938bd",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 269.323,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.4964,
    "c": 0.19771,
    "h": 301.9
  },
  "luminance": 0.10567
}

Semantic roles & 50–950 ramp

primary
#7938BD
secondary
#A9C987
accent
#DE4A96
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7938BD

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

Preview Lab → · Contrast checker → · Palette generator →

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