#7938B7#7938B7

#7938B7 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 49.2% C 0.191 H 303.5°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#7938B7
RGBrgb(121, 56, 183)
HSLhsl(271, 53%, 47%)
HSVhsv(271, 69%, 72%)
CMYKcmyk(33.9%, 69.4%, 0%, 28.2%)
CIE-LABlab(38.40, 51.83, -56.11)
CIE-LCHlch(38.40, 76.39, 312.73°)
OKLaboklab(49.18% 0.1054 -0.1596)
OKLCHoklch(49.18% 0.191 303.5)
XYZxyz(17.8446, 10.3122, 45.8409)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7938B7 #76B738
analogous
#3A38B7 #7938B7 #B738B6
triadic
#7938B7 #B77938 #38B779
tetradic
#7938B7 #B73A38 #76B738 #38B6B7
square
#7938B7 #B73A38 #76B738 #38B6B7
split-complementary
#7938B7 #B6B738 #38B73A
monochromatic
#3B1B59 #5A2A88 #7938B7 #975ECE #B68DDC

Accessibility & contrast

On white

6.86
#7938B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7938B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7938B7
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7938B7#FFFFFF#000000##FFFFFF
##7938B71.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BB
Deuteranopia (green-blind)
#005AB4
Tritanopia (blue-blind)
#6D5573
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7938b7;
/* rgb */ color: rgb(121, 56, 183);
/* oklch */ color: oklch(49.2% 0.191 303.5);
Tailwind
colors: {
  custom: {
    50: '#a574cd',
    500: '#7938b7',
    950: '#000000',
  },
}
SCSS
$custom: #7938b7;
$custom-light: #a574cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7938b7",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 270.709,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49183,
    "c": 0.19126,
    "h": 303.5
  },
  "luminance": 0.10312
}

Semantic roles & 50–950 ramp

primary
#7938B7
secondary
#A5C784
accent
#DD4B92
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7938B7

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

Preview Lab → · Contrast checker → · Palette generator →

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