#7938C4#7938C4

#7938C4 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.2% C 0.205 H 300.2°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#7938C4
RGBrgb(121, 56, 196)
HSLhsl(268, 56%, 49%)
HSVhsv(268, 71%, 77%)
CMYKcmyk(38.3%, 71.4%, 0%, 23.1%)
CIE-LABlab(39.38, 55.00, -62.15)
CIE-LCHlch(39.38, 82.99, 311.51°)
OKLaboklab(50.19% 0.1033 -0.1773)
OKLCHoklch(50.19% 0.205 300.2)
XYZxyz(19.2607, 10.8786, 53.2989)
Luminance0.1088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7938C4 #83C438
analogous
#383DC4 #7938C4 #BF38C4
triadic
#7938C4 #C47938 #38C479
tetradic
#7938C4 #C4383D #83C438 #38C4BF
square
#7938C4 #C4383D #83C438 #38C4BF
split-complementary
#7938C4 #C4BF38 #3DC438
monochromatic
#3E1D65 #5C2A94 #7938C4 #9966D3 #B996E1

Accessibility & contrast

On white

6.61
#7938C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7938C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7938C4
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7938C4#FFFFFF#000000##FFFFFF
##7938C41.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7938c4;
/* rgb */ color: rgb(121, 56, 196);
/* oklch */ color: oklch(50.2% 0.205 300.2);
Tailwind
colors: {
  custom: {
    50: '#a674d7',
    500: '#7938c4',
    950: '#000000',
  },
}
SCSS
$custom: #7938c4;
$custom-light: #a674d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7938c4",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 267.857,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50186,
    "c": 0.2052,
    "h": 300.2
  },
  "luminance": 0.10879
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7938C4

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

Preview Lab → · Contrast checker → · Palette generator →

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