#7938BC#7938BC

#7938BC is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.6% C 0.197 H 302.2°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#7938BC
RGBrgb(121, 56, 188)
HSLhsl(270, 54%, 48%)
HSVhsv(270, 70%, 74%)
CMYKcmyk(35.6%, 70.2%, 0%, 26.3%)
CIE-LABlab(38.77, 53.04, -58.45)
CIE-LCHlch(38.77, 78.93, 312.22°)
OKLaboklab(49.56% 0.1047 -0.1665)
OKLCHoklch(49.56% 0.197 302.2)
XYZxyz(18.3743, 10.5241, 48.6305)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7938BC #7BBC38
analogous
#3839BC #7938BC #BB38BC
triadic
#7938BC #BC7938 #38BC79
tetradic
#7938BC #BC3839 #7BBC38 #38BCBB
square
#7938BC #BC3839 #7BBC38 #38BCBB
split-complementary
#7938BC #BCBB38 #39BC38
monochromatic
#3C1C5E #5B2A8D #7938BC #9861D0 #B790DE

Accessibility & contrast

On white

6.76
#7938BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7938BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7938BC
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7938BC#FFFFFF#000000##FFFFFF
##7938BC1.006.763.106.76
#FFFFFF6.761.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#005BB9
Tritanopia (blue-blind)
#6B5776
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7938bc;
/* rgb */ color: rgb(121, 56, 188);
/* oklch */ color: oklch(49.6% 0.197 302.2);
Tailwind
colors: {
  custom: {
    50: '#a574d1',
    500: '#7938bc',
    950: '#000000',
  },
}
SCSS
$custom: #7938bc;
$custom-light: #a574d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7938bc",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 269.545,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49563,
    "c": 0.19663,
    "h": 302.2
  },
  "luminance": 0.10524
}

Semantic roles & 50–950 ramp

primary
#7938BC
secondary
#A8C987
accent
#DD4A95
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7938BC

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

Preview Lab → · Contrast checker → · Palette generator →

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