#7938C1#7938C1

#7938C1 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.0% C 0.202 H 300.9°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#7938C1
RGBrgb(121, 56, 193)
HSLhsl(268, 55%, 49%)
HSVhsv(268, 71%, 76%)
CMYKcmyk(37.3%, 71%, 0%, 24.3%)
CIE-LABlab(39.14, 54.26, -60.77)
CIE-LCHlch(39.14, 81.47, 311.76°)
OKLaboklab(49.95% 0.1038 -0.1733)
OKLCHoklch(49.95% 0.202 300.9)
XYZxyz(18.9226, 10.7434, 51.5185)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7938C1 #80C138
analogous
#383CC1 #7938C1 #BE38C1
triadic
#7938C1 #C17938 #38C179
tetradic
#7938C1 #C1383C #80C138 #38C1BE
square
#7938C1 #C1383C #80C138 #38C1BE
split-complementary
#7938C1 #C1BE38 #3CC138
monochromatic
#3E1C62 #5B2A92 #7938C1 #9864D2 #B894E0

Accessibility & contrast

On white

6.67
#7938C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#7938C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7938C1
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7938C1#FFFFFF#000000##FFFFFF
##7938C11.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC5
Deuteranopia (green-blind)
#005BBE
Tritanopia (blue-blind)
#695979
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7938c1;
/* rgb */ color: rgb(121, 56, 193);
/* oklch */ color: oklch(50.0% 0.202 300.9);
Tailwind
colors: {
  custom: {
    50: '#a674d5',
    500: '#7938c1',
    950: '#000000',
  },
}
SCSS
$custom: #7938c1;
$custom-light: #a674d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7938c1",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 193
  },
  "hsl": {
    "h": 268.467,
    "s": 55.02,
    "l": 48.824
  },
  "oklch": {
    "l": 0.49951,
    "c": 0.20199,
    "h": 300.9
  },
  "luminance": 0.10744
}

Semantic roles & 50–950 ramp

primary
#7938C1
secondary
#ACCB8A
accent
#DE4998
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7938C1

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

Preview Lab → · Contrast checker → · Palette generator →

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