#7A31BE#7A31BE

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

Color values

HEX#7A31BE
RGBrgb(122, 49, 190)
HSLhsl(271, 59%, 47%)
HSVhsv(271, 74%, 75%)
CMYKcmyk(35.8%, 74.2%, 0%, 25.5%)
CIE-LABlab(37.94, 56.85, -60.97)
CIE-LCHlch(37.94, 83.36, 313.00°)
OKLaboklab(49.05% 0.1125 -0.1738)
OKLCHoklch(49.05% 0.207 302.9)
XYZxyz(18.4164, 10.0519, 49.6752)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A31BE #75BE31
analogous
#3431BE #7A31BE #BE31BC
triadic
#7A31BE #BE7A31 #31BE7A
tetradic
#7A31BE #BE3431 #75BE31 #31BCBE
square
#7A31BE #BE3431 #75BE31 #31BCBE
split-complementary
#7A31BE #BCBE31 #31BE34
monochromatic
#3C185D #5B248D #7A31BE #9858D4 #B689E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A31BE#FFFFFF#000000##FFFFFF
##7A31BE1.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)
#0058C2
Deuteranopia (green-blind)
#0059BB
Tritanopia (blue-blind)
#6C5475
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7a31be;
/* rgb */ color: rgb(122, 49, 190);
/* oklch */ color: oklch(49.0% 0.207 302.9);
Tailwind
colors: {
  custom: {
    50: '#a670d3',
    500: '#7a31be',
    950: '#000000',
  },
}
SCSS
$custom: #7a31be;
$custom-light: #a670d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a31be",
  "rgb": {
    "r": 122,
    "g": 49,
    "b": 190
  },
  "hsl": {
    "h": 271.064,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4905,
    "c": 0.20701,
    "h": 302.9
  },
  "luminance": 0.10052
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7A31BE

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

Preview Lab → · Contrast checker → · Palette generator →

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