#7731C5#7731C5

#7731C5 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.3% C 0.214 H 299.9°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#7731C5
RGBrgb(119, 49, 197)
HSLhsl(268, 60%, 48%)
HSVhsv(268, 75%, 77%)
CMYKcmyk(39.6%, 75.1%, 0%, 22.7%)
CIE-LABlab(38.11, 58.00, -64.80)
CIE-LCHlch(38.11, 86.97, 311.83°)
OKLaboklab(49.26% 0.1067 -0.1851)
OKLCHoklch(49.26% 0.214 299.9)
XYZxyz(18.7816, 10.1496, 53.7821)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7731C5 #7FC531
analogous
#3135C5 #7731C5 #C131C5
triadic
#7731C5 #C57731 #31C577
tetradic
#7731C5 #C53135 #7FC531 #31C5C1
square
#7731C5 #C53135 #7FC531 #31C5C1
split-complementary
#7731C5 #C5C131 #35C531
monochromatic
#3C1963 #592594 #7731C5 #965DD7 #B68EE3

Accessibility & contrast

On white

6.93
#7731C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7731C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7731C5
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7731C5#FFFFFF#000000##FFFFFF
##7731C51.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C9
Deuteranopia (green-blind)
#0059C2
Tritanopia (blue-blind)
#655879
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7731c5;
/* rgb */ color: rgb(119, 49, 197);
/* oklch */ color: oklch(49.3% 0.214 299.9);
Tailwind
colors: {
  custom: {
    50: '#a570d8',
    500: '#7731c5',
    950: '#000000',
  },
}
SCSS
$custom: #7731c5;
$custom-light: #a570d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7731c5",
  "rgb": {
    "r": 119,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 268.378,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49263,
    "c": 0.21367,
    "h": 299.9
  },
  "luminance": 0.1015
}

Semantic roles & 50–950 ramp

primary
#7731C5
secondary
#ABCD85
accent
#E34498
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7731C5

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

Preview Lab → · Contrast checker → · Palette generator →

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