#7731B8#7731B8

#7731B8 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.2% C 0.200 H 303.1°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#7731B8
RGBrgb(119, 49, 184)
HSLhsl(271, 58%, 46%)
HSVhsv(271, 73%, 72%)
CMYKcmyk(35.3%, 73.4%, 0%, 27.8%)
CIE-LABlab(37.08, 54.89, -58.86)
CIE-LCHlch(37.08, 80.48, 313.00°)
OKLaboklab(48.21% 0.1095 -0.1677)
OKLCHoklch(48.21% 0.2 303.1)
XYZxyz(17.3558, 9.5793, 46.2727)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7731B8 #72B831
analogous
#3331B8 #7731B8 #B831B5
triadic
#7731B8 #B87731 #31B877
tetradic
#7731B8 #B83331 #72B831 #31B5B8
square
#7731B8 #B83331 #72B831 #31B5B8
split-complementary
#7731B8 #B5B831 #31B833
monochromatic
#381757 #582488 #7731B8 #9555D2 #B385DE

Accessibility & contrast

On white

7.20
#7731B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7731B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7731B8
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7731B8#FFFFFF#000000##FFFFFF
##7731B81.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#0057B5
Tritanopia (blue-blind)
#6A5272
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7731b8;
/* rgb */ color: rgb(119, 49, 184);
/* oklch */ color: oklch(48.2% 0.200 303.1);
Tailwind
colors: {
  custom: {
    50: '#a470ce',
    500: '#7731b8',
    950: '#000000',
  },
}
SCSS
$custom: #7731b8;
$custom-light: #a470ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7731b8",
  "rgb": {
    "r": 119,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 271.111,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48213,
    "c": 0.20026,
    "h": 303.1
  },
  "luminance": 0.09579
}

Semantic roles & 50–950 ramp

primary
#7731B8
secondary
#A1C87D
accent
#E14791
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7731B8

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

Preview Lab → · Contrast checker → · Palette generator →

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