#7731A1#7731A1

#7731A1 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.5% C 0.176 H 309.9°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#7731A1
RGBrgb(119, 49, 161)
HSLhsl(278, 53%, 41%)
HSVhsv(278, 70%, 63%)
CMYKcmyk(26.1%, 69.6%, 0%, 36.9%)
CIE-LABlab(35.38, 49.54, -47.87)
CIE-LCHlch(35.38, 68.89, 315.98°)
OKLaboklab(46.48% 0.1131 -0.1354)
OKLCHoklch(46.48% 0.176 309.9)
XYZxyz(15.1378, 8.6921, 34.5916)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7731A1 #5BA131
analogous
#3F31A1 #7731A1 #A13193
triadic
#7731A1 #A17731 #31A177
tetradic
#7731A1 #A13F31 #5BA131 #3193A1
square
#7731A1 #A13F31 #5BA131 #3193A1
split-complementary
#7731A1 #93A131 #31A13F
monochromatic
#321443 #542372 #7731A1 #9848C7 #B277D6

Accessibility & contrast

On white

7.67
#7731A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7731A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7731A1
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7731A1#FFFFFF#000000##FFFFFF
##7731A11.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#1E549F
Tritanopia (blue-blind)
#714965
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7731a1;
/* rgb */ color: rgb(119, 49, 161);
/* oklch */ color: oklch(46.5% 0.176 309.9);
Tailwind
colors: {
  custom: {
    50: '#a26fbd',
    500: '#7731a1',
    950: '#000000',
  },
}
SCSS
$custom: #7731a1;
$custom-light: #a26fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#7731a1",
  "rgb": {
    "r": 119,
    "g": 49,
    "b": 161
  },
  "hsl": {
    "h": 277.5,
    "s": 53.333,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46477,
    "c": 0.17643,
    "h": 309.9
  },
  "luminance": 0.08692
}

Semantic roles & 50–950 ramp

primary
#7731A1
secondary
#8DBE70
accent
#DD4B82
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #7731A1

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

Preview Lab → · Contrast checker → · Palette generator →

#7731A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva