#7931B2#7931B2

#7931B2 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.0% C 0.195 H 305.7°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#7931B2
RGBrgb(121, 49, 178)
HSLhsl(273, 57%, 45%)
HSVhsv(273, 72%, 70%)
CMYKcmyk(32%, 72.5%, 0%, 30.2%)
CIE-LABlab(36.89, 53.86, -55.60)
CIE-LCHlch(36.89, 77.41, 314.09°)
OKLaboklab(47.99% 0.1134 -0.158)
OKLCHoklch(47.99% 0.195 305.7)
XYZxyz(17.0176, 9.4761, 43.0434)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7931B2 #6AB231
analogous
#3831B2 #7931B2 #B231AB
triadic
#7931B2 #B27931 #31B279
tetradic
#7931B2 #B23831 #6AB231 #31ABB2
square
#7931B2 #B23831 #6AB231 #31ABB2
split-complementary
#7931B2 #ABB231 #31B238
monochromatic
#381752 #582482 #7931B2 #9751CF #B481DC

Accessibility & contrast

On white

7.25
#7931B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7931B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7931B2
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7931B2#FFFFFF#000000##FFFFFF
##7931B21.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0057AF
Tritanopia (blue-blind)
#6F506E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7931b2;
/* rgb */ color: rgb(121, 49, 178);
/* oklch */ color: oklch(48.0% 0.195 305.7);
Tailwind
colors: {
  custom: {
    50: '#a570ca',
    500: '#7931b2',
    950: '#000000',
  },
}
SCSS
$custom: #7931b2;
$custom-light: #a570ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7931b2",
  "rgb": {
    "r": 121,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 273.488,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47991,
    "c": 0.19452,
    "h": 305.7
  },
  "luminance": 0.09476
}

Semantic roles & 50–950 ramp

primary
#7931B2
secondary
#9BC579
accent
#E0488B
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7931B2

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

Preview Lab → · Contrast checker → · Palette generator →

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