#7B31B9#7B31B9

#7B31B9 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.8% C 0.202 H 304.6°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#7B31B9
RGBrgb(123, 49, 185)
HSLhsl(273, 58%, 46%)
HSVhsv(273, 74%, 73%)
CMYKcmyk(33.5%, 73.5%, 0%, 27.5%)
CIE-LABlab(37.68, 55.86, -58.44)
CIE-LCHlch(37.68, 80.84, 313.71°)
OKLaboklab(48.78% 0.1149 -0.1663)
OKLCHoklch(48.78% 0.202 304.6)
XYZxyz(18.0217, 9.9104, 46.8530)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31B9 #6FB931
analogous
#3731B9 #7B31B9 #B931B3
triadic
#7B31B9 #B97B31 #31B97B
tetradic
#7B31B9 #B93731 #6FB931 #31B3B9
square
#7B31B9 #B93731 #6FB931 #31B3B9
split-complementary
#7B31B9 #B3B931 #31B937
monochromatic
#3B1758 #5B2489 #7B31B9 #9955D2 #B686DF

Accessibility & contrast

On white

7.04
#7B31B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7B31B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B31B9
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31B9#FFFFFF#000000##FFFFFF
##7B31B91.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#0059B6
Tritanopia (blue-blind)
#6F5272
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7b31b9;
/* rgb */ color: rgb(123, 49, 185);
/* oklch */ color: oklch(48.8% 0.202 304.6);
Tailwind
colors: {
  custom: {
    50: '#a770cf',
    500: '#7b31b9',
    950: '#000000',
  },
}
SCSS
$custom: #7b31b9;
$custom-light: #a770cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31b9",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 272.647,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48778,
    "c": 0.20214,
    "h": 304.6
  },
  "luminance": 0.0991
}

Semantic roles & 50–950 ramp

primary
#7B31B9
secondary
#A0C87D
accent
#E1468D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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