#7B31BE#7B31BE

#7B31BE is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.2% C 0.207 H 303.3°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#7B31BE
RGBrgb(123, 49, 190)
HSLhsl(271, 59%, 47%)
HSVhsv(271, 74%, 75%)
CMYKcmyk(35.3%, 74.2%, 0%, 25.5%)
CIE-LABlab(38.07, 57.03, -60.75)
CIE-LCHlch(38.07, 83.33, 313.19°)
OKLaboklab(49.17% 0.1139 -0.1731)
OKLCHoklch(49.17% 0.207 303.3)
XYZxyz(18.5588, 10.1253, 49.6819)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31BE #74BE31
analogous
#3431BE #7B31BE #BE31BB
triadic
#7B31BE #BE7B31 #31BE7B
tetradic
#7B31BE #BE3431 #74BE31 #31BBBE
square
#7B31BE #BE3431 #74BE31 #31BBBE
split-complementary
#7B31BE #BBBE31 #31BE34
monochromatic
#3C185D #5C248D #7B31BE #9958D4 #B789E1

Accessibility & contrast

On white

6.94
#7B31BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7B31BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B31BE
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31BE#FFFFFF#000000##FFFFFF
##7B31BE1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C2
Deuteranopia (green-blind)
#0059BB
Tritanopia (blue-blind)
#6D5475
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7b31be;
/* rgb */ color: rgb(123, 49, 190);
/* oklch */ color: oklch(49.2% 0.207 303.3);
Tailwind
colors: {
  custom: {
    50: '#a770d3',
    500: '#7b31be',
    950: '#000000',
  },
}
SCSS
$custom: #7b31be;
$custom-light: #a770d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31be",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 190
  },
  "hsl": {
    "h": 271.489,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4917,
    "c": 0.20721,
    "h": 303.3
  },
  "luminance": 0.10125
}

Semantic roles & 50–950 ramp

primary
#7B31BE
secondary
#A4CA80
accent
#E24690
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7B31BE

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

Preview Lab → · Contrast checker → · Palette generator →

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