#7B31B2#7B31B2

#7B31B2 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.2% C 0.195 H 306.6°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#7B31B2
RGBrgb(123, 49, 178)
HSLhsl(274, 57%, 45%)
HSVhsv(274, 72%, 70%)
CMYKcmyk(30.9%, 72.5%, 0%, 30.2%)
CIE-LABlab(37.16, 54.25, -55.15)
CIE-LCHlch(37.16, 77.36, 314.53°)
OKLaboklab(48.24% 0.1162 -0.1566)
OKLCHoklch(48.24% 0.195 306.6)
XYZxyz(17.3008, 9.6221, 43.0567)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31B2 #68B231
analogous
#3B31B2 #7B31B2 #B231A8
triadic
#7B31B2 #B27B31 #31B27B
tetradic
#7B31B2 #B23B31 #68B231 #31A8B2
square
#7B31B2 #B23B31 #68B231 #31A8B2
split-complementary
#7B31B2 #A8B231 #31B23B
monochromatic
#391752 #5A2482 #7B31B2 #9951CF #B581DC

Accessibility & contrast

On white

7.18
#7B31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7B31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B31B2
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31B2#FFFFFF#000000##FFFFFF
##7B31B21.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#724F6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b31b2;
/* rgb */ color: rgb(123, 49, 178);
/* oklch */ color: oklch(48.2% 0.195 306.6);
Tailwind
colors: {
  custom: {
    50: '#a670ca',
    500: '#7b31b2',
    950: '#000000',
  },
}
SCSS
$custom: #7b31b2;
$custom-light: #a670ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31b2",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 274.419,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4824,
    "c": 0.19502,
    "h": 306.6
  },
  "luminance": 0.09622
}

Semantic roles & 50–950 ramp

primary
#7B31B2
secondary
#9AC579
accent
#E04889
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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