#7931BA#7931BA

#7931BA is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.203 H 303.5°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#7931BA
RGBrgb(121, 49, 186)
HSLhsl(272, 58%, 46%)
HSVhsv(272, 74%, 73%)
CMYKcmyk(34.9%, 73.7%, 0%, 27.1%)
CIE-LABlab(37.49, 55.73, -59.35)
CIE-LCHlch(37.49, 81.41, 313.20°)
OKLaboklab(48.61% 0.1119 -0.169)
OKLCHoklch(48.61% 0.203 303.5)
XYZxyz(17.8443, 9.8068, 47.3977)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7931BA #72BA31
analogous
#3431BA #7931BA #BA31B6
triadic
#7931BA #BA7931 #31BA79
tetradic
#7931BA #BA3431 #72BA31 #31B6BA
square
#7931BA #BA3431 #72BA31 #31B6BA
split-complementary
#7931BA #B6BA31 #31BA34
monochromatic
#3A1759 #59248A #7931BA #9756D2 #B586DF

Accessibility & contrast

On white

7.09
#7931BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7931BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7931BA
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7931BA#FFFFFF#000000##FFFFFF
##7931BA1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#0058B7
Tritanopia (blue-blind)
#6C5373
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7931ba;
/* rgb */ color: rgb(121, 49, 186);
/* oklch */ color: oklch(48.6% 0.203 303.5);
Tailwind
colors: {
  custom: {
    50: '#a570d0',
    500: '#7931ba',
    950: '#000000',
  },
}
SCSS
$custom: #7931ba;
$custom-light: #a570d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7931ba",
  "rgb": {
    "r": 121,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 271.533,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48612,
    "c": 0.20273,
    "h": 303.5
  },
  "luminance": 0.09807
}

Semantic roles & 50–950 ramp

primary
#7931BA
secondary
#A1C97E
accent
#E24690
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7931BA

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

Preview Lab → · Contrast checker → · Palette generator →

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