#7938B3#7938B3

#7938B3 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.9% C 0.187 H 304.5°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#7938B3
RGBrgb(121, 56, 179)
HSLhsl(272, 52%, 46%)
HSVhsv(272, 69%, 70%)
CMYKcmyk(32.4%, 68.7%, 0%, 29.8%)
CIE-LABlab(38.11, 50.87, -54.22)
CIE-LCHlch(38.11, 74.35, 313.18°)
OKLaboklab(48.88% 0.106 -0.154)
OKLCHoklch(48.88% 0.187 304.5)
XYZxyz(17.4342, 10.1480, 43.6794)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7938B3 #72B338
analogous
#3B38B3 #7938B3 #B338AF
triadic
#7938B3 #B37938 #38B379
tetradic
#7938B3 #B33B38 #72B338 #38AFB3
square
#7938B3 #B33B38 #72B338 #38AFB3
split-complementary
#7938B3 #AFB338 #38B33B
monochromatic
#3A1B56 #592984 #7938B3 #975CCC #B58BDB

Accessibility & contrast

On white

6.93
#7938B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7938B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7938B3#FFFFFF#000000##FFFFFF
##7938B31.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B7
Deuteranopia (green-blind)
#055AB0
Tritanopia (blue-blind)
#6E5471
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7938b3;
/* rgb */ color: rgb(121, 56, 179);
/* oklch */ color: oklch(48.9% 0.187 304.5);
Tailwind
colors: {
  custom: {
    50: '#a473ca',
    500: '#7938b3',
    950: '#000000',
  },
}
SCSS
$custom: #7938b3;
$custom-light: #a473ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7938b3",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 271.707,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48884,
    "c": 0.18695,
    "h": 304.5
  },
  "luminance": 0.10148
}

Semantic roles & 50–950 ramp

primary
#7938B3
secondary
#A1C582
accent
#DC4C90
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7938B3

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

Preview Lab → · Contrast checker → · Palette generator →

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