#7731BA#7731BA

#7731BA is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.4% C 0.202 H 302.6°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#7731BA
RGBrgb(119, 49, 186)
HSLhsl(271, 58%, 46%)
HSVhsv(271, 74%, 73%)
CMYKcmyk(36%, 73.7%, 0%, 27.1%)
CIE-LABlab(37.23, 55.36, -59.78)
CIE-LCHlch(37.23, 81.48, 312.80°)
OKLaboklab(48.37% 0.1091 -0.1704)
OKLCHoklch(48.37% 0.202 302.6)
XYZxyz(17.5669, 9.6637, 47.3847)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7731BA #74BA31
analogous
#3231BA #7731BA #BA31B8
triadic
#7731BA #BA7731 #31BA77
tetradic
#7731BA #BA3231 #74BA31 #31B8BA
square
#7731BA #BA3231 #74BA31 #31B8BA
split-complementary
#7731BA #B8BA31 #31BA32
monochromatic
#391759 #58248A #7731BA #9556D2 #B486DF

Accessibility & contrast

On white

7.16
#7731BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7731BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7731BA
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7731BA#FFFFFF#000000##FFFFFF
##7731BA1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0057B7
Tritanopia (blue-blind)
#695373
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7731ba;
/* rgb */ color: rgb(119, 49, 186);
/* oklch */ color: oklch(48.4% 0.202 302.6);
Tailwind
colors: {
  custom: {
    50: '#a470d0',
    500: '#7731ba',
    950: '#000000',
  },
}
SCSS
$custom: #7731ba;
$custom-light: #a470d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7731ba",
  "rgb": {
    "r": 119,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 270.657,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48371,
    "c": 0.20233,
    "h": 302.6
  },
  "luminance": 0.09664
}

Semantic roles & 50–950 ramp

primary
#7731BA
secondary
#A3C97E
accent
#E24692
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7731BA

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

Preview Lab → · Contrast checker → · Palette generator →

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