#7938AB#7938AB

#7938AB is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.3% C 0.178 H 306.8°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#7938AB
RGBrgb(121, 56, 171)
HSLhsl(274, 51%, 45%)
HSVhsv(274, 67%, 67%)
CMYKcmyk(29.2%, 67.3%, 0%, 32.9%)
CIE-LABlab(37.54, 48.97, -50.38)
CIE-LCHlch(37.54, 70.26, 314.19°)
OKLaboklab(48.3% 0.1069 -0.1427)
OKLCHoklch(48.3% 0.178 306.8)
XYZxyz(16.6485, 9.8338, 39.5412)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7938AB #6AAB38
analogous
#3F38AB #7938AB #AB38A4
triadic
#7938AB #AB7938 #38AB79
tetradic
#7938AB #AB3F38 #6AAB38 #38A4AB
square
#7938AB #AB3F38 #6AAB38 #38A4AB
split-complementary
#7938AB #A4AB38 #38AB3F
monochromatic
#381A4F #58297D #7938AB #9758C8 #B486D7

Accessibility & contrast

On white

7.08
#7938AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7938AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7938AB
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7938AB#FFFFFF#000000##FFFFFF
##7938AB1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AE
Deuteranopia (green-blind)
#1C59A8
Tritanopia (blue-blind)
#71516D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7938ab;
/* rgb */ color: rgb(121, 56, 171);
/* oklch */ color: oklch(48.3% 0.178 306.8);
Tailwind
colors: {
  custom: {
    50: '#a473c5',
    500: '#7938ab',
    950: '#000000',
  },
}
SCSS
$custom: #7938ab;
$custom-light: #a473c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7938ab",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 273.913,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48301,
    "c": 0.17832,
    "h": 306.8
  },
  "luminance": 0.09834
}

Semantic roles & 50–950 ramp

primary
#7938AB
secondary
#9BC17D
accent
#DA4E8B
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7938AB

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

Preview Lab → · Contrast checker → · Palette generator →

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