#7C31BB#7C31BB

#7C31BB is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.1% C 0.204 H 304.5°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#7C31BB
RGBrgb(124, 49, 187)
HSLhsl(273, 58%, 46%)
HSVhsv(273, 74%, 73%)
CMYKcmyk(33.7%, 73.8%, 0%, 26.7%)
CIE-LABlab(37.97, 56.51, -59.15)
CIE-LCHlch(37.97, 81.80, 313.69°)
OKLaboklab(49.06% 0.1159 -0.1683)
OKLCHoklch(49.06% 0.204 304.5)
XYZxyz(18.3781, 10.0696, 47.9795)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C31BB #70BB31
analogous
#3731BB #7C31BB #BB31B5
triadic
#7C31BB #BB7C31 #31BB7C
tetradic
#7C31BB #BB3731 #70BB31 #31B5BB
square
#7C31BB #BB3731 #70BB31 #31B5BB
split-complementary
#7C31BB #B5BB31 #31BB37
monochromatic
#3C185A #5C248B #7C31BB #9A56D3 #B787E0

Accessibility & contrast

On white

6.97
#7C31BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7C31BB
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C31BB#FFFFFF#000000##FFFFFF
##7C31BB1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#0059B8
Tritanopia (blue-blind)
#705374
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7c31bb;
/* rgb */ color: rgb(124, 49, 187);
/* oklch */ color: oklch(49.1% 0.204 304.5);
Tailwind
colors: {
  custom: {
    50: '#a770d0',
    500: '#7c31bb',
    950: '#000000',
  },
}
SCSS
$custom: #7c31bb;
$custom-light: #a770d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c31bb",
  "rgb": {
    "r": 124,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 272.609,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49056,
    "c": 0.20439,
    "h": 304.5
  },
  "luminance": 0.1007
}

Semantic roles & 50–950 ramp

primary
#7C31BB
secondary
#A1C97F
accent
#E2468D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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