#7731AB#7731AB

#7731AB is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.2% C 0.187 H 306.8°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#7731AB
RGBrgb(119, 49, 171)
HSLhsl(274, 55%, 43%)
HSVhsv(274, 71%, 67%)
CMYKcmyk(30.4%, 71.3%, 0%, 32.9%)
CIE-LABlab(36.10, 51.84, -52.72)
CIE-LCHlch(36.10, 73.94, 314.51°)
OKLaboklab(47.21% 0.1118 -0.1496)
OKLCHoklch(47.21% 0.187 306.8)
XYZxyz(16.0552, 9.0590, 39.4229)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7731AB #65AB31
analogous
#3A31AB #7731AB #AB31A2
triadic
#7731AB #AB7731 #31AB77
tetradic
#7731AB #AB3A31 #65AB31 #31A2AB
square
#7731AB #AB3A31 #65AB31 #31A2AB
split-complementary
#7731AB #A2AB31 #31AB3A
monochromatic
#35164C #56237B #7731AB #964DCC #B27DDA

Accessibility & contrast

On white

7.47
#7731AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7731AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7731AB
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7731AB#FFFFFF#000000##FFFFFF
##7731AB1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#0455A8
Tritanopia (blue-blind)
#6E4D6B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7731ab;
/* rgb */ color: rgb(119, 49, 171);
/* oklch */ color: oklch(47.2% 0.187 306.8);
Tailwind
colors: {
  custom: {
    50: '#a36fc5',
    500: '#7731ab',
    950: '#000000',
  },
}
SCSS
$custom: #7731ab;
$custom-light: #a36fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7731ab",
  "rgb": {
    "r": 119,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 274.426,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47211,
    "c": 0.1868,
    "h": 306.8
  },
  "luminance": 0.09059
}

Semantic roles & 50–950 ramp

primary
#7731AB
secondary
#96C275
accent
#DF4989
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7731AB

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

Preview Lab → · Contrast checker → · Palette generator →

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