#7731B7#7731B7

#7731B7 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.1% C 0.199 H 303.4°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7731B7
RGBrgb(119, 49, 183)
HSLhsl(271, 58%, 45%)
HSVhsv(271, 73%, 72%)
CMYKcmyk(35%, 73.2%, 0%, 28.2%)
CIE-LABlab(37.00, 54.65, -58.39)
CIE-LCHlch(37.00, 79.97, 313.10°)
OKLaboklab(48.13% 0.1097 -0.1663)
OKLCHoklch(48.13% 0.199 303.4)
XYZxyz(17.2513, 9.5375, 45.7226)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7731B7 #71B731
analogous
#3431B7 #7731B7 #B731B4
triadic
#7731B7 #B77731 #31B777
tetradic
#7731B7 #B73431 #71B731 #31B4B7
square
#7731B7 #B73431 #71B731 #31B4B7
split-complementary
#7731B7 #B4B731 #31B734
monochromatic
#381756 #582487 #7731B7 #9554D1 #B384DE

Accessibility & contrast

On white

7.22
#7731B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7731B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7731B7
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7731B7#FFFFFF#000000##FFFFFF
##7731B71.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0057B4
Tritanopia (blue-blind)
#6A5271
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7731b7;
/* rgb */ color: rgb(119, 49, 183);
/* oklch */ color: oklch(48.1% 0.199 303.4);
Tailwind
colors: {
  custom: {
    50: '#a470cd',
    500: '#7731b7',
    950: '#000000',
  },
}
SCSS
$custom: #7731b7;
$custom-light: #a470cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7731b7",
  "rgb": {
    "r": 119,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 271.343,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48134,
    "c": 0.19923,
    "h": 303.4
  },
  "luminance": 0.09537
}

Semantic roles & 50–950 ramp

primary
#7731B7
secondary
#A0C87C
accent
#E14790
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7731B7

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

Preview Lab → · Contrast checker → · Palette generator →

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