#7938BB#7938BB

#7938BB is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.5% C 0.196 H 302.4°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#7938BB
RGBrgb(121, 56, 187)
HSLhsl(270, 54%, 48%)
HSVhsv(270, 70%, 73%)
CMYKcmyk(35.3%, 70.1%, 0%, 26.7%)
CIE-LABlab(38.69, 52.80, -57.99)
CIE-LCHlch(38.69, 78.42, 312.32°)
OKLaboklab(49.49% 0.1048 -0.1651)
OKLCHoklch(49.49% 0.196 302.4)
XYZxyz(18.2668, 10.4811, 48.0648)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7938BB #7ABB38
analogous
#3839BB #7938BB #BA38BB
triadic
#7938BB #BB7938 #38BB79
tetradic
#7938BB #BB3839 #7ABB38 #38BBBA
square
#7938BB #BB3839 #7ABB38 #38BBBA
split-complementary
#7938BB #BBBA38 #39BB38
monochromatic
#3C1C5D #5B2A8C #7938BB #9861D0 #B690DE

Accessibility & contrast

On white

6.78
#7938BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7938BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7938BB#FFFFFF#000000##FFFFFF
##7938BB1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#005BB8
Tritanopia (blue-blind)
#6B5775
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7938bb;
/* rgb */ color: rgb(121, 56, 187);
/* oklch */ color: oklch(49.5% 0.196 302.4);
Tailwind
colors: {
  custom: {
    50: '#a574d0',
    500: '#7938bb',
    950: '#000000',
  },
}
SCSS
$custom: #7938bb;
$custom-light: #a574d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7938bb",
  "rgb": {
    "r": 121,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 269.771,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49487,
    "c": 0.19556,
    "h": 302.4
  },
  "luminance": 0.10481
}

Semantic roles & 50–950 ramp

primary
#7938BB
secondary
#A8C886
accent
#DD4B94
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7938BB

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

Preview Lab → · Contrast checker → · Palette generator →

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