#7731A3#7731A3

#7731A3 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.6% C 0.178 H 309.2°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#7731A3
RGBrgb(119, 49, 163)
HSLhsl(277, 54%, 42%)
HSVhsv(277, 70%, 64%)
CMYKcmyk(27%, 69.9%, 0%, 36.1%)
CIE-LABlab(35.52, 50.00, -48.85)
CIE-LCHlch(35.52, 69.90, 315.66°)
OKLaboklab(46.62% 0.1129 -0.1383)
OKLCHoklch(46.62% 0.179 309.2)
XYZxyz(15.3156, 8.7632, 35.5279)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7731A3 #5DA331
analogous
#3E31A3 #7731A3 #A33196
triadic
#7731A3 #A37731 #31A377
tetradic
#7731A3 #A33E31 #5DA331 #3196A3
square
#7731A3 #A33E31 #5DA331 #3196A3
split-complementary
#7731A3 #96A331 #31A33E
monochromatic
#321545 #552374 #7731A3 #9749C8 #B278D6

Accessibility & contrast

On white

7.63
#7731A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7731A3
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7731A3#FFFFFF#000000##FFFFFF
##7731A31.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#1B54A1
Tritanopia (blue-blind)
#714A66
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7731a3;
/* rgb */ color: rgb(119, 49, 163);
/* oklch */ color: oklch(46.6% 0.178 309.2);
Tailwind
colors: {
  custom: {
    50: '#a26fbf',
    500: '#7731a3',
    950: '#000000',
  },
}
SCSS
$custom: #7731a3;
$custom-light: #a26fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#7731a3",
  "rgb": {
    "r": 119,
    "g": 49,
    "b": 163
  },
  "hsl": {
    "h": 276.842,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46621,
    "c": 0.1785,
    "h": 309.2
  },
  "luminance": 0.08763
}

Semantic roles & 50–950 ramp

primary
#7731A3
secondary
#8FBF71
accent
#DD4B83
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #7731A3

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

Preview Lab → · Contrast checker → · Palette generator →

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