#7B31AF#7B31AF

#7B31AF is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.0% C 0.192 H 307.4°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#7B31AF
RGBrgb(123, 49, 175)
HSLhsl(275, 56%, 44%)
HSVhsv(275, 72%, 69%)
CMYKcmyk(29.7%, 72%, 0%, 31.4%)
CIE-LABlab(36.94, 53.56, -53.73)
CIE-LCHlch(36.94, 75.86, 314.91°)
OKLaboklab(48.02% 0.1167 -0.1525)
OKLCHoklch(48.02% 0.192 307.4)
XYZxyz(17.0029, 9.5030, 41.4877)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31AF #65AF31
analogous
#3C31AF #7B31AF #AF31A4
triadic
#7B31AF #AF7B31 #31AF7B
tetradic
#7B31AF #AF3C31 #65AF31 #31A4AF
square
#7B31AF #AF3C31 #65AF31 #31A4AF
split-complementary
#7B31AF #A4AF31 #31AF3C
monochromatic
#38164F #59247F #7B31AF #9A4FCE #B57FDB

Accessibility & contrast

On white

7.24
#7B31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7B31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B31AF
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31AF#FFFFFF#000000##FFFFFF
##7B31AF1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0558AC
Tritanopia (blue-blind)
#724E6D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b31af;
/* rgb */ color: rgb(123, 49, 175);
/* oklch */ color: oklch(48.0% 0.192 307.4);
Tailwind
colors: {
  custom: {
    50: '#a670c8',
    500: '#7b31af',
    950: '#000000',
  },
}
SCSS
$custom: #7b31af;
$custom-light: #a670c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31af",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 275.238,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48015,
    "c": 0.19197,
    "h": 307.4
  },
  "luminance": 0.09503
}

Semantic roles & 50–950 ramp

primary
#7B31AF
secondary
#97C478
accent
#E04887
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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