#7938B5#7938B5

#7938B5 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 49.0% C 0.189 H 304.0°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#7938B5
RGBrgb(121, 56, 181)
HSLhsl(271, 53%, 46%)
HSVhsv(271, 69%, 71%)
CMYKcmyk(33.1%, 69.1%, 0%, 29%)
CIE-LABlab(38.25, 51.35, -55.16)
CIE-LCHlch(38.25, 75.37, 312.95°)
OKLaboklab(49.03% 0.1057 -0.1568)
OKLCHoklch(49.03% 0.189 304)
XYZxyz(17.6379, 10.2295, 44.7524)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7938B5 #74B538
analogous
#3B38B5 #7938B5 #B538B3
triadic
#7938B5 #B57938 #38B579
tetradic
#7938B5 #B53B38 #74B538 #38B3B5
square
#7938B5 #B53B38 #74B538 #38B3B5
split-complementary
#7938B5 #B3B538 #38B53B
monochromatic
#3B1B58 #5A2A86 #7938B5 #975DCD #B58CDB

Accessibility & contrast

On white

6.89
#7938B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7938B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7938B5
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7938B5#FFFFFF#000000##FFFFFF
##7938B51.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B9
Deuteranopia (green-blind)
#005AB2
Tritanopia (blue-blind)
#6D5572
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7938b5;
/* rgb */ color: rgb(121, 56, 181);
/* oklch */ color: oklch(49.0% 0.189 304.0);
Tailwind
colors: {
  custom: {
    50: '#a574cc',
    500: '#7938b5',
    950: '#000000',
  },
}
SCSS
$custom: #7938b5;
$custom-light: #a574cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7938b5",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 271.2,
    "s": 52.743,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49033,
    "c": 0.1891,
    "h": 304
  },
  "luminance": 0.10229
}

Semantic roles & 50–950 ramp

primary
#7938B5
secondary
#A3C683
accent
#DC4C91
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7938B5

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

Preview Lab → · Contrast checker → · Palette generator →

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