#7B31C9#7B31C9

#7B31C9 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.1% C 0.218 H 300.7°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#7B31C9
RGBrgb(123, 49, 201)
HSLhsl(269, 61%, 49%)
HSVhsv(269, 76%, 79%)
CMYKcmyk(38.8%, 75.6%, 0%, 21.2%)
CIE-LABlab(38.94, 59.62, -65.76)
CIE-LCHlch(38.94, 88.76, 312.20°)
OKLaboklab(50.06% 0.1114 -0.1878)
OKLCHoklch(50.06% 0.218 300.7)
XYZxyz(19.8067, 10.6245, 56.2542)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31C9 #7FC931
analogous
#3133C9 #7B31C9 #C731C9
triadic
#7B31C9 #C97B31 #31C97B
tetradic
#7B31C9 #C93133 #7FC931 #31C9C7
square
#7B31C9 #C93133 #7FC931 #31C9C7
split-complementary
#7B31C9 #C9C731 #33C931
monochromatic
#3F1967 #5D2598 #7B31C9 #9A5FD8 #B990E4

Accessibility & contrast

On white

6.72
#7B31C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7B31C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B31C9
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31C9#FFFFFF#000000##FFFFFF
##7B31C91.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCD
Deuteranopia (green-blind)
#005BC6
Tritanopia (blue-blind)
#69597B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7b31c9;
/* rgb */ color: rgb(123, 49, 201);
/* oklch */ color: oklch(50.1% 0.218 300.7);
Tailwind
colors: {
  custom: {
    50: '#a871da',
    500: '#7b31c9',
    950: '#000000',
  },
}
SCSS
$custom: #7b31c9;
$custom-light: #a871da;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31c9",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 201
  },
  "hsl": {
    "h": 269.211,
    "s": 60.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50057,
    "c": 0.21836,
    "h": 300.7
  },
  "luminance": 0.10625
}

Semantic roles & 50–950 ramp

primary
#7B31C9
secondary
#ACCF87
accent
#E44496
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7B31C9

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

Preview Lab → · Contrast checker → · Palette generator →

#7B31C9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva