#7938C3#7938C3

#7938C3 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.1% C 0.204 H 300.5°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#7938C3
RGBrgb(121, 56, 195)
HSLhsl(268, 55%, 49%)
HSVhsv(268, 71%, 76%)
CMYKcmyk(37.9%, 71.3%, 0%, 23.5%)
CIE-LABlab(39.30, 54.75, -61.69)
CIE-LCHlch(39.30, 82.48, 311.59°)
OKLaboklab(50.11% 0.1035 -0.176)
OKLCHoklch(50.11% 0.204 300.5)
XYZxyz(19.1472, 10.8333, 52.7014)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7938C3 #82C338
analogous
#383CC3 #7938C3 #BF38C3
triadic
#7938C3 #C37938 #38C379
tetradic
#7938C3 #C3383C #82C338 #38C3BF
square
#7938C3 #C3383C #82C338 #38C3BF
split-complementary
#7938C3 #C3BF38 #3CC338
monochromatic
#3E1D64 #5B2A93 #7938C3 #9965D3 #B895E1

Accessibility & contrast

On white

6.63
#7938C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#7938C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7938C3
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7938C3#FFFFFF#000000##FFFFFF
##7938C31.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC7
Deuteranopia (green-blind)
#005CC0
Tritanopia (blue-blind)
#685A7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7938c3;
/* rgb */ color: rgb(121, 56, 195);
/* oklch */ color: oklch(50.1% 0.204 300.5);
Tailwind
colors: {
  custom: {
    50: '#a674d6',
    500: '#7938c3',
    950: '#000000',
  },
}
SCSS
$custom: #7938c3;
$custom-light: #a674d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7938c3",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 268.058,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50107,
    "c": 0.20413,
    "h": 300.5
  },
  "luminance": 0.10833
}

Semantic roles & 50–950 ramp

primary
#7938C3
secondary
#ADCC8B
accent
#DF4999
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7938C3

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

Preview Lab → · Contrast checker → · Palette generator →

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