#7B31BC#7B31BC

#7B31BC is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.0% C 0.205 H 303.9°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#7B31BC
RGBrgb(123, 49, 188)
HSLhsl(272, 59%, 46%)
HSVhsv(272, 74%, 74%)
CMYKcmyk(34.6%, 73.9%, 0%, 26.3%)
CIE-LABlab(37.91, 56.56, -59.83)
CIE-LCHlch(37.91, 82.33, 313.39°)
OKLaboklab(49.01% 0.1143 -0.1704)
OKLCHoklch(49.01% 0.205 303.9)
XYZxyz(18.3417, 10.0385, 48.5385)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31BC #72BC31
analogous
#3531BC #7B31BC #BC31B8
triadic
#7B31BC #BC7B31 #31BC7B
tetradic
#7B31BC #BC3531 #72BC31 #31B8BC
square
#7B31BC #BC3531 #72BC31 #31B8BC
split-complementary
#7B31BC #B8BC31 #31BC35
monochromatic
#3B185B #5B248B #7B31BC #9957D3 #B788E0

Accessibility & contrast

On white

6.98
#7B31BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7B31BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B31BC
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31BC#FFFFFF#000000##FFFFFF
##7B31BC1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#0059B9
Tritanopia (blue-blind)
#6E5374
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7b31bc;
/* rgb */ color: rgb(123, 49, 188);
/* oklch */ color: oklch(49.0% 0.205 303.9);
Tailwind
colors: {
  custom: {
    50: '#a770d1',
    500: '#7b31bc',
    950: '#000000',
  },
}
SCSS
$custom: #7b31bc;
$custom-light: #a770d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31bc",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 271.942,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49012,
    "c": 0.20518,
    "h": 303.9
  },
  "luminance": 0.10038
}

Semantic roles & 50–950 ramp

primary
#7B31BC
secondary
#A2CA7F
accent
#E2468F
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7B31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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