#7C31BD#7C31BD

#7C31BD is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.2% C 0.206 H 304.0°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#7C31BD
RGBrgb(124, 49, 189)
HSLhsl(272, 59%, 47%)
HSVhsv(272, 74%, 74%)
CMYKcmyk(34.4%, 74.1%, 0%, 25.9%)
CIE-LABlab(38.12, 56.98, -60.07)
CIE-LCHlch(38.12, 82.79, 313.48°)
OKLaboklab(49.21% 0.1155 -0.1711)
OKLCHoklch(49.21% 0.206 304)
XYZxyz(18.5937, 10.1559, 49.1150)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C31BD #72BD31
analogous
#3631BD #7C31BD #BD31B8
triadic
#7C31BD #BD7C31 #31BD7C
tetradic
#7C31BD #BD3631 #72BD31 #31B8BD
square
#7C31BD #BD3631 #72BD31 #31B8BD
split-complementary
#7C31BD #B8BD31 #31BD36
monochromatic
#3C185C #5C248C #7C31BD #9A58D4 #B788E0

Accessibility & contrast

On white

6.93
#7C31BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7C31BD
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C31BD#FFFFFF#000000##FFFFFF
##7C31BD1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#005ABA
Tritanopia (blue-blind)
#6F5475
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7c31bd;
/* rgb */ color: rgb(124, 49, 189);
/* oklch */ color: oklch(49.2% 0.206 304.0);
Tailwind
colors: {
  custom: {
    50: '#a870d2',
    500: '#7c31bd',
    950: '#000000',
  },
}
SCSS
$custom: #7c31bd;
$custom-light: #a870d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c31bd",
  "rgb": {
    "r": 124,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 272.143,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49213,
    "c": 0.20641,
    "h": 304
  },
  "luminance": 0.10156
}

Semantic roles & 50–950 ramp

primary
#7C31BD
secondary
#A2CA80
accent
#E2468E
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7C31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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