#7B31C8#7B31C8

#7B31C8 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.0% C 0.217 H 300.9°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#7B31C8
RGBrgb(123, 49, 200)
HSLhsl(269, 61%, 49%)
HSVhsv(269, 76%, 78%)
CMYKcmyk(38.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(38.86, 59.38, -65.31)
CIE-LCHlch(38.86, 88.27, 312.28°)
OKLaboklab(49.98% 0.1116 -0.1865)
OKLCHoklch(49.98% 0.217 300.9)
XYZxyz(19.6895, 10.5776, 55.6367)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31C8 #7EC831
analogous
#3132C8 #7B31C8 #C731C8
triadic
#7B31C8 #C87B31 #31C87B
tetradic
#7B31C8 #C83132 #7EC831 #31C8C7
square
#7B31C8 #C83132 #7EC831 #31C8C7
split-complementary
#7B31C8 #C8C731 #32C831
monochromatic
#3F1966 #5D2597 #7B31C8 #9A5FD8 #B990E4

Accessibility & contrast

On white

6.74
#7B31C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7B31C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B31C8
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31C8#FFFFFF#000000##FFFFFF
##7B31C81.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCC
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#6A587B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7b31c8;
/* rgb */ color: rgb(123, 49, 200);
/* oklch */ color: oklch(50.0% 0.217 300.9);
Tailwind
colors: {
  custom: {
    50: '#a871da',
    500: '#7b31c8',
    950: '#000000',
  },
}
SCSS
$custom: #7b31c8;
$custom-light: #a871da;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31c8",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 269.404,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.49975,
    "c": 0.21735,
    "h": 300.9
  },
  "luminance": 0.10578
}

Semantic roles & 50–950 ramp

primary
#7B31C8
secondary
#ABCE86
accent
#E44495
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7B31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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