#7938B9#7938B9

#7938B9 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.3% C 0.193 H 302.9°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#7938B9
RGBrgb(121, 56, 185)
HSLhsl(270, 54%, 47%)
HSVhsv(270, 70%, 73%)
CMYKcmyk(34.6%, 69.7%, 0%, 27.5%)
CIE-LABlab(38.54, 52.32, -57.05)
CIE-LCHlch(38.54, 77.41, 312.52°)
OKLaboklab(49.33% 0.1051 -0.1623)
OKLCHoklch(49.33% 0.193 302.9)
XYZxyz(18.0542, 10.3961, 46.9450)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7938B9 #78B938
analogous
#3938B9 #7938B9 #B938B8
triadic
#7938B9 #B97938 #38B979
tetradic
#7938B9 #B93938 #78B938 #38B8B9
square
#7938B9 #B93938 #78B938 #38B8B9
split-complementary
#7938B9 #B8B938 #38B939
monochromatic
#3C1C5B #5A2A8A #7938B9 #985FCF #B68EDD

Accessibility & contrast

On white

6.82
#7938B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7938B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7938B9
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7938B9#FFFFFF#000000##FFFFFF
##7938B91.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABD
Deuteranopia (green-blind)
#005AB6
Tritanopia (blue-blind)
#6C5674
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7938b9;
/* rgb */ color: rgb(121, 56, 185);
/* oklch */ color: oklch(49.3% 0.193 302.9);
Tailwind
colors: {
  custom: {
    50: '#a574cf',
    500: '#7938b9',
    950: '#000000',
  },
}
SCSS
$custom: #7938b9;
$custom-light: #a574cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7938b9",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 185
  },
  "hsl": {
    "h": 270.233,
    "s": 53.527,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49334,
    "c": 0.1934,
    "h": 302.9
  },
  "luminance": 0.10396
}

Semantic roles & 50–950 ramp

primary
#7938B9
secondary
#A6C885
accent
#DD4B93
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7938B9

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

Preview Lab → · Contrast checker → · Palette generator →

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