#7938C6#7938C6

#7938C6 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.3% C 0.207 H 299.8°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#7938C6
RGBrgb(121, 56, 198)
HSLhsl(267, 56%, 50%)
HSVhsv(267, 72%, 78%)
CMYKcmyk(38.9%, 71.7%, 0%, 22.4%)
CIE-LABlab(39.53, 55.49, -63.06)
CIE-LCHlch(39.53, 84.00, 311.35°)
OKLaboklab(50.35% 0.1029 -0.18)
OKLCHoklch(50.35% 0.207 299.8)
XYZxyz(19.4898, 10.9703, 54.5058)
Luminance0.1097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7938C6 #85C638
analogous
#383EC6 #7938C6 #C038C6
triadic
#7938C6 #C67938 #38C679
tetradic
#7938C6 #C6383E #85C638 #38C6C0
square
#7938C6 #C6383E #85C638 #38C6C0
split-complementary
#7938C6 #C6C038 #3EC638
monochromatic
#3F1D67 #5C2B96 #7938C6 #9967D4 #B997E2

Accessibility & contrast

On white

6.57
#7938C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7938C6
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7938C6#FFFFFF#000000##FFFFFF
##7938C61.006.573.196.57
#FFFFFF6.571.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCA
Deuteranopia (green-blind)
#005CC3
Tritanopia (blue-blind)
#675B7C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7938c6;
/* rgb */ color: rgb(121, 56, 198);
/* oklch */ color: oklch(50.3% 0.207 299.8);
Tailwind
colors: {
  custom: {
    50: '#a674d8',
    500: '#7938c6',
    950: '#000000',
  },
}
SCSS
$custom: #7938c6;
$custom-light: #a674d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7938c6",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 267.465,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50345,
    "c": 0.20733,
    "h": 299.8
  },
  "luminance": 0.10971
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7938C6

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

Preview Lab → · Contrast checker → · Palette generator →

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