#7A31BD#7A31BD

#7A31BD is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.0% C 0.206 H 303.2°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#7A31BD
RGBrgb(122, 49, 189)
HSLhsl(271, 59%, 47%)
HSVhsv(271, 74%, 74%)
CMYKcmyk(35.4%, 74.1%, 0%, 25.9%)
CIE-LABlab(37.86, 56.61, -60.51)
CIE-LCHlch(37.86, 82.87, 313.09°)
OKLaboklab(48.97% 0.1127 -0.1724)
OKLCHoklch(48.97% 0.206 303.2)
XYZxyz(18.3075, 10.0083, 49.1016)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A31BD #74BD31
analogous
#3431BD #7A31BD #BD31BA
triadic
#7A31BD #BD7A31 #31BD7A
tetradic
#7A31BD #BD3431 #74BD31 #31BABD
square
#7A31BD #BD3431 #74BD31 #31BABD
split-complementary
#7A31BD #BABD31 #31BD34
monochromatic
#3B185C #5B248C #7A31BD #9858D4 #B688E0

Accessibility & contrast

On white

7.00
#7A31BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#7A31BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A31BD
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A31BD#FFFFFF#000000##FFFFFF
##7A31BD1.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#0059BA
Tritanopia (blue-blind)
#6C5475
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7a31bd;
/* rgb */ color: rgb(122, 49, 189);
/* oklch */ color: oklch(49.0% 0.206 303.2);
Tailwind
colors: {
  custom: {
    50: '#a670d2',
    500: '#7a31bd',
    950: '#000000',
  },
}
SCSS
$custom: #7a31bd;
$custom-light: #a670d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a31bd",
  "rgb": {
    "r": 122,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 271.286,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.4897,
    "c": 0.206,
    "h": 303.2
  },
  "luminance": 0.10008
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7A31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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