#7731A8#7731A8

#7731A8 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.0% C 0.184 H 307.7°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#7731A8
RGBrgb(119, 49, 168)
HSLhsl(275, 55%, 43%)
HSVhsv(275, 71%, 66%)
CMYKcmyk(29.2%, 70.8%, 0%, 34.1%)
CIE-LABlab(35.88, 51.14, -51.28)
CIE-LCHlch(35.88, 72.42, 314.92°)
OKLaboklab(46.99% 0.1122 -0.1454)
OKLCHoklch(46.99% 0.184 307.7)
XYZxyz(15.7725, 8.9459, 37.9340)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7731A8 #62A831
analogous
#3B31A8 #7731A8 #A8319E
triadic
#7731A8 #A87731 #31A877
tetradic
#7731A8 #A83B31 #62A831 #319EA8
square
#7731A8 #A83B31 #62A831 #319EA8
split-complementary
#7731A8 #9EA831 #31A83B
monochromatic
#341549 #552379 #7731A8 #964CCB #B27BD8

Accessibility & contrast

On white

7.53
#7731A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7731A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7731A8
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7731A8#FFFFFF#000000##FFFFFF
##7731A81.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#0F55A5
Tritanopia (blue-blind)
#6F4C69
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7731a8;
/* rgb */ color: rgb(119, 49, 168);
/* oklch */ color: oklch(47.0% 0.184 307.7);
Tailwind
colors: {
  custom: {
    50: '#a36fc3',
    500: '#7731a8',
    950: '#000000',
  },
}
SCSS
$custom: #7731a8;
$custom-light: #a36fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7731a8",
  "rgb": {
    "r": 119,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 275.294,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.46987,
    "c": 0.18368,
    "h": 307.7
  },
  "luminance": 0.08946
}

Semantic roles & 50–950 ramp

primary
#7731A8
secondary
#94C174
accent
#DE4A87
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7731A8

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

Preview Lab → · Contrast checker → · Palette generator →

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