#7B31B8#7B31B8

#7B31B8 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.7% C 0.201 H 304.9°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#7B31B8
RGBrgb(123, 49, 184)
HSLhsl(273, 58%, 46%)
HSVhsv(273, 73%, 72%)
CMYKcmyk(33.2%, 73.4%, 0%, 27.8%)
CIE-LABlab(37.61, 55.63, -57.97)
CIE-LCHlch(37.61, 80.35, 313.82°)
OKLaboklab(48.7% 0.1151 -0.1649)
OKLCHoklch(48.7% 0.201 304.9)
XYZxyz(17.9165, 9.8684, 46.2990)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31B8 #6EB831
analogous
#3731B8 #7B31B8 #B831B1
triadic
#7B31B8 #B87B31 #31B87B
tetradic
#7B31B8 #B83731 #6EB831 #31B1B8
square
#7B31B8 #B83731 #6EB831 #31B1B8
split-complementary
#7B31B8 #B1B831 #31B837
monochromatic
#3A1757 #5B2488 #7B31B8 #9955D2 #B685DE

Accessibility & contrast

On white

7.06
#7B31B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7B31B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B31B8
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31B8#FFFFFF#000000##FFFFFF
##7B31B81.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BC
Deuteranopia (green-blind)
#0059B5
Tritanopia (blue-blind)
#705272
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7b31b8;
/* rgb */ color: rgb(123, 49, 184);
/* oklch */ color: oklch(48.7% 0.201 304.9);
Tailwind
colors: {
  custom: {
    50: '#a670ce',
    500: '#7b31b8',
    950: '#000000',
  },
}
SCSS
$custom: #7b31b8;
$custom-light: #a670ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31b8",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 272.889,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.487,
    "c": 0.20112,
    "h": 304.9
  },
  "luminance": 0.09868
}

Semantic roles & 50–950 ramp

primary
#7B31B8
secondary
#9FC87D
accent
#E1478C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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