#7731A7#7731A7

#7731A7 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.9% C 0.183 H 308.0°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#7731A7
RGBrgb(119, 49, 167)
HSLhsl(276, 55%, 42%)
HSVhsv(276, 71%, 65%)
CMYKcmyk(28.7%, 70.7%, 0%, 34.5%)
CIE-LABlab(35.81, 50.91, -50.80)
CIE-LCHlch(35.81, 71.92, 315.06°)
OKLaboklab(46.91% 0.1124 -0.144)
OKLCHoklch(46.91% 0.183 308)
XYZxyz(15.6797, 8.9088, 37.4453)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7731A7 #61A731
analogous
#3C31A7 #7731A7 #A7319C
triadic
#7731A7 #A77731 #31A777
tetradic
#7731A7 #A73C31 #61A731 #319CA7
square
#7731A7 #A73C31 #61A731 #319CA7
split-complementary
#7731A7 #9CA731 #31A73C
monochromatic
#341548 #552378 #7731A7 #964BCA #B27AD8

Accessibility & contrast

On white

7.55
#7731A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7731A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7731A7
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7731A7#FFFFFF#000000##FFFFFF
##7731A71.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AA
Deuteranopia (green-blind)
#1255A4
Tritanopia (blue-blind)
#6F4B68
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7731a7;
/* rgb */ color: rgb(119, 49, 167);
/* oklch */ color: oklch(46.9% 0.183 308.0);
Tailwind
colors: {
  custom: {
    50: '#a26fc2',
    500: '#7731a7',
    950: '#000000',
  },
}
SCSS
$custom: #7731a7;
$custom-light: #a26fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#7731a7",
  "rgb": {
    "r": 119,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 275.593,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.46913,
    "c": 0.18265,
    "h": 308
  },
  "luminance": 0.08909
}

Semantic roles & 50–950 ramp

primary
#7731A7
secondary
#93C173
accent
#DE4A86
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7731A7

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

Preview Lab → · Contrast checker → · Palette generator →

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