#7731A2#7731A2

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

Color values

HEX#7731A2
RGBrgb(119, 49, 162)
HSLhsl(277, 54%, 41%)
HSVhsv(277, 70%, 64%)
CMYKcmyk(26.5%, 69.8%, 0%, 36.5%)
CIE-LABlab(35.45, 49.77, -48.37)
CIE-LCHlch(35.45, 69.40, 315.82°)
OKLaboklab(46.55% 0.113 -0.1368)
OKLCHoklch(46.55% 0.177 309.5)
XYZxyz(15.2264, 8.7275, 35.0579)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7731A2 #5CA231
analogous
#3F31A2 #7731A2 #A23195
triadic
#7731A2 #A27731 #31A277
tetradic
#7731A2 #A23F31 #5CA231 #3195A2
square
#7731A2 #A23F31 #5CA231 #3195A2
split-complementary
#7731A2 #95A231 #31A23F
monochromatic
#321544 #542373 #7731A2 #9748C8 #B277D6

Accessibility & contrast

On white

7.65
#7731A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7731A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7731A2
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7731A2#FFFFFF#000000##FFFFFF
##7731A21.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#1C54A0
Tritanopia (blue-blind)
#714966
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7731a2;
/* rgb */ color: rgb(119, 49, 162);
/* oklch */ color: oklch(46.5% 0.177 309.5);
Tailwind
colors: {
  custom: {
    50: '#a26fbe',
    500: '#7731a2',
    950: '#000000',
  },
}
SCSS
$custom: #7731a2;
$custom-light: #a26fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7731a2",
  "rgb": {
    "r": 119,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 277.168,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46549,
    "c": 0.17747,
    "h": 309.5
  },
  "luminance": 0.08727
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7731A2

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

Preview Lab → · Contrast checker → · Palette generator →

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