#7938C5#7938C5

#7938C5 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.3% C 0.206 H 300.0°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#7938C5
RGBrgb(121, 56, 197)
HSLhsl(268, 56%, 50%)
HSVhsv(268, 72%, 77%)
CMYKcmyk(38.6%, 71.6%, 0%, 22.7%)
CIE-LABlab(39.45, 55.24, -62.60)
CIE-LCHlch(39.45, 83.49, 311.43°)
OKLaboklab(50.27% 0.1031 -0.1787)
OKLCHoklch(50.27% 0.206 300)
XYZxyz(19.3749, 10.9243, 53.9003)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7938C5 #84C538
analogous
#383DC5 #7938C5 #C038C5
triadic
#7938C5 #C57938 #38C579
tetradic
#7938C5 #C5383D #84C538 #38C5C0
square
#7938C5 #C5383D #84C538 #38C5C0
split-complementary
#7938C5 #C5C038 #3DC538
monochromatic
#3E1D66 #5C2A95 #7938C5 #9967D4 #B996E1

Accessibility & contrast

On white

6.59
#7938C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7938C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7938C5
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7938C5#FFFFFF#000000##FFFFFF
##7938C51.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC9
Deuteranopia (green-blind)
#005CC2
Tritanopia (blue-blind)
#685B7B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7938c5;
/* rgb */ color: rgb(121, 56, 197);
/* oklch */ color: oklch(50.3% 0.206 300.0);
Tailwind
colors: {
  custom: {
    50: '#a674d8',
    500: '#7938c5',
    950: '#000000',
  },
}
SCSS
$custom: #7938c5;
$custom-light: #a674d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7938c5",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 267.66,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50265,
    "c": 0.20627,
    "h": 300
  },
  "luminance": 0.10925
}

Semantic roles & 50–950 ramp

primary
#7938C5
secondary
#AFCD8C
accent
#DF499A
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7938C5

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

Preview Lab → · Contrast checker → · Palette generator →

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