#7938AA#7938AA

#7938AA is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.2% C 0.177 H 307.1°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#7938AA
RGBrgb(121, 56, 170)
HSLhsl(274, 50%, 44%)
HSVhsv(274, 67%, 67%)
CMYKcmyk(28.8%, 67.1%, 0%, 33.3%)
CIE-LABlab(37.47, 48.74, -49.89)
CIE-LCHlch(37.47, 69.74, 314.33°)
OKLaboklab(48.23% 0.107 -0.1413)
OKLCHoklch(48.23% 0.177 307.1)
XYZxyz(16.5535, 9.7958, 39.0411)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7938AA #69AA38
analogous
#4038AA #7938AA #AA38A2
triadic
#7938AA #AA7938 #38AA79
tetradic
#7938AA #AA4038 #69AA38 #38A2AA
square
#7938AA #AA4038 #69AA38 #38A2AA
split-complementary
#7938AA #A2AA38 #38AA40
monochromatic
#371A4E #58297C #7938AA #9757C8 #B485D7

Accessibility & contrast

On white

7.10
#7938AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7938AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7938AA#FFFFFF#000000##FFFFFF
##7938AA1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AD
Deuteranopia (green-blind)
#1D59A7
Tritanopia (blue-blind)
#71506C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7938aa;
/* rgb */ color: rgb(121, 56, 170);
/* oklch */ color: oklch(48.2% 0.177 307.1);
Tailwind
colors: {
  custom: {
    50: '#a473c4',
    500: '#7938aa',
    950: '#000000',
  },
}
SCSS
$custom: #7938aa;
$custom-light: #a473c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7938aa",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 274.211,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48229,
    "c": 0.17723,
    "h": 307.1
  },
  "luminance": 0.09796
}

Semantic roles & 50–950 ramp

primary
#7938AA
secondary
#9AC17D
accent
#DA4E8A
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7938AA

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

Preview Lab → · Contrast checker → · Palette generator →

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