#7B31B3#7B31B3

#7B31B3 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.3% C 0.196 H 306.3°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#7B31B3
RGBrgb(123, 49, 179)
HSLhsl(274, 57%, 45%)
HSVhsv(274, 73%, 70%)
CMYKcmyk(31.3%, 72.6%, 0%, 29.8%)
CIE-LABlab(37.23, 54.48, -55.62)
CIE-LCHlch(37.23, 77.86, 314.40°)
OKLaboklab(48.32% 0.116 -0.158)
OKLCHoklch(48.32% 0.196 306.3)
XYZxyz(17.4016, 9.6624, 43.5874)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31B3 #69B331
analogous
#3A31B3 #7B31B3 #B331AA
triadic
#7B31B3 #B37B31 #31B37B
tetradic
#7B31B3 #B33A31 #69B331 #31AAB3
square
#7B31B3 #B33A31 #69B331 #31AAB3
split-complementary
#7B31B3 #AAB331 #31B33A
monochromatic
#391753 #5A2483 #7B31B3 #9952D0 #B682DD

Accessibility & contrast

On white

7.16
#7B31B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7B31B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B31B3
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31B3#FFFFFF#000000##FFFFFF
##7B31B31.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#71506F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7b31b3;
/* rgb */ color: rgb(123, 49, 179);
/* oklch */ color: oklch(48.3% 0.196 306.3);
Tailwind
colors: {
  custom: {
    50: '#a670cb',
    500: '#7b31b3',
    950: '#000000',
  },
}
SCSS
$custom: #7b31b3;
$custom-light: #a670cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31b3",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 274.154,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48316,
    "c": 0.19603,
    "h": 306.3
  },
  "luminance": 0.09662
}

Semantic roles & 50–950 ramp

primary
#7B31B3
secondary
#9BC67A
accent
#E04889
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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