#7938C2#7938C2

#7938C2 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.0% C 0.203 H 300.7°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#7938C2
RGBrgb(121, 56, 194)
HSLhsl(268, 55%, 49%)
HSVhsv(268, 71%, 76%)
CMYKcmyk(37.6%, 71.1%, 0%, 23.9%)
CIE-LABlab(39.22, 54.51, -61.23)
CIE-LCHlch(39.22, 81.98, 311.68°)
OKLaboklab(50.03% 0.1036 -0.1746)
OKLCHoklch(50.03% 0.203 300.7)
XYZxyz(19.0345, 10.7882, 52.1080)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7938C2 #81C238
analogous
#383CC2 #7938C2 #BE38C2
triadic
#7938C2 #C27938 #38C279
tetradic
#7938C2 #C2383C #81C238 #38C2BE
square
#7938C2 #C2383C #81C238 #38C2BE
split-complementary
#7938C2 #C2BE38 #3CC238
monochromatic
#3E1D63 #5B2A93 #7938C2 #9865D2 #B894E0

Accessibility & contrast

On white

6.65
#7938C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7938C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7938C2
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7938C2#FFFFFF#000000##FFFFFF
##7938C21.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#005BBF
Tritanopia (blue-blind)
#695A79
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7938c2;
/* rgb */ color: rgb(121, 56, 194);
/* oklch */ color: oklch(50.0% 0.203 300.7);
Tailwind
colors: {
  custom: {
    50: '#a674d5',
    500: '#7938c2',
    950: '#000000',
  },
}
SCSS
$custom: #7938c2;
$custom-light: #a674d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7938c2",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 268.261,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50029,
    "c": 0.20306,
    "h": 300.7
  },
  "luminance": 0.10788
}

Semantic roles & 50–950 ramp

primary
#7938C2
secondary
#ADCB8A
accent
#DF4998
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7938C2

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

Preview Lab → · Contrast checker → · Palette generator →

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