#7938B2#7938B2

#7938B2 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.8% C 0.186 H 304.8°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#7938B2
RGBrgb(121, 56, 178)
HSLhsl(272, 52%, 46%)
HSVhsv(272, 69%, 70%)
CMYKcmyk(32%, 68.5%, 0%, 30.2%)
CIE-LABlab(38.03, 50.63, -53.74)
CIE-LCHlch(38.03, 73.84, 313.30°)
OKLaboklab(48.81% 0.1061 -0.1526)
OKLCHoklch(48.81% 0.186 304.8)
XYZxyz(17.3334, 10.1077, 43.1487)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7938B2 #71B238
analogous
#3C38B2 #7938B2 #B238AE
triadic
#7938B2 #B27938 #38B279
tetradic
#7938B2 #B23C38 #71B238 #38AEB2
square
#7938B2 #B23C38 #71B238 #38AEB2
split-complementary
#7938B2 #AEB238 #38B23C
monochromatic
#3A1B55 #592983 #7938B2 #975CCC #B58ADA

Accessibility & contrast

On white

6.95
#7938B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#7938B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7938B2
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7938B2#FFFFFF#000000##FFFFFF
##7938B21.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#095AAF
Tritanopia (blue-blind)
#6E5370
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7938b2;
/* rgb */ color: rgb(121, 56, 178);
/* oklch */ color: oklch(48.8% 0.186 304.8);
Tailwind
colors: {
  custom: {
    50: '#a473ca',
    500: '#7938b2',
    950: '#000000',
  },
}
SCSS
$custom: #7938b2;
$custom-light: #a473ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7938b2",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 271.967,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.4881,
    "c": 0.18587,
    "h": 304.8
  },
  "luminance": 0.10108
}

Semantic roles & 50–950 ramp

primary
#7938B2
secondary
#A1C581
accent
#DC4C8F
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7938B2

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

Preview Lab → · Contrast checker → · Palette generator →

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