#7931B8#7931B8

#7931B8 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.201 H 304.0°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#7931B8
RGBrgb(121, 49, 184)
HSLhsl(272, 58%, 46%)
HSVhsv(272, 73%, 72%)
CMYKcmyk(34.2%, 73.4%, 0%, 27.8%)
CIE-LABlab(37.34, 55.26, -58.42)
CIE-LCHlch(37.34, 80.41, 313.41°)
OKLaboklab(48.46% 0.1123 -0.1663)
OKLCHoklch(48.46% 0.201 304)
XYZxyz(17.6332, 9.7223, 46.2857)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7931B8 #70B831
analogous
#3531B8 #7931B8 #B831B3
triadic
#7931B8 #B87931 #31B879
tetradic
#7931B8 #B83531 #70B831 #31B3B8
square
#7931B8 #B83531 #70B831 #31B3B8
split-complementary
#7931B8 #B3B831 #31B835
monochromatic
#391757 #592488 #7931B8 #9755D2 #B585DE

Accessibility & contrast

On white

7.13
#7931B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7931B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7931B8
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7931B8#FFFFFF#000000##FFFFFF
##7931B81.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#0058B5
Tritanopia (blue-blind)
#6D5272
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7931b8;
/* rgb */ color: rgb(121, 49, 184);
/* oklch */ color: oklch(48.5% 0.201 304.0);
Tailwind
colors: {
  custom: {
    50: '#a570ce',
    500: '#7931b8',
    950: '#000000',
  },
}
SCSS
$custom: #7931b8;
$custom-light: #a570ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7931b8",
  "rgb": {
    "r": 121,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 272,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48455,
    "c": 0.20068,
    "h": 304
  },
  "luminance": 0.09722
}

Semantic roles & 50–950 ramp

primary
#7931B8
secondary
#A0C87D
accent
#E1478F
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7931B8

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

Preview Lab → · Contrast checker → · Palette generator →

#7931B8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva