#7937B2#7937B2

#7937B2 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.7% C 0.187 H 304.9°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#7937B2
RGBrgb(121, 55, 178)
HSLhsl(272, 53%, 46%)
HSVhsv(272, 69%, 70%)
CMYKcmyk(32%, 69.1%, 0%, 30.2%)
CIE-LABlab(37.86, 51.11, -54.02)
CIE-LCHlch(37.86, 74.36, 313.42°)
OKLaboklab(48.69% 0.1072 -0.1534)
OKLCHoklch(48.69% 0.187 304.9)
XYZxyz(17.2854, 10.0118, 43.1327)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7937B2 #70B237
analogous
#3B37B2 #7937B2 #B237AD
triadic
#7937B2 #B27937 #37B279
tetradic
#7937B2 #B23B37 #70B237 #37ADB2
square
#7937B2 #B23B37 #70B237 #37ADB2
split-complementary
#7937B2 #ADB237 #37B23B
monochromatic
#391A54 #592983 #7937B2 #975ACC #B589DB

Accessibility & contrast

On white

6.99
#7937B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#7937B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7937B2
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7937B2#FFFFFF#000000##FFFFFF
##7937B21.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#0559AF
Tritanopia (blue-blind)
#6F5370
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7937b2;
/* rgb */ color: rgb(121, 55, 178);
/* oklch */ color: oklch(48.7% 0.187 304.9);
Tailwind
colors: {
  custom: {
    50: '#a473ca',
    500: '#7937b2',
    950: '#000000',
  },
}
SCSS
$custom: #7937b2;
$custom-light: #a473ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7937b2",
  "rgb": {
    "r": 121,
    "g": 55,
    "b": 178
  },
  "hsl": {
    "h": 272.195,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48688,
    "c": 0.18715,
    "h": 304.9
  },
  "luminance": 0.10012
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7937B2

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

Preview Lab → · Contrast checker → · Palette generator →

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