#7D31C8#7D31C8

#7D31C8 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.2% C 0.218 H 301.7°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#7D31C8
RGBrgb(125, 49, 200)
HSLhsl(270, 61%, 49%)
HSVhsv(270, 76%, 78%)
CMYKcmyk(37.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(39.12, 59.72, -64.88)
CIE-LCHlch(39.12, 88.18, 312.63°)
OKLaboklab(50.21% 0.1145 -0.1852)
OKLCHoklch(50.21% 0.218 301.7)
XYZxyz(19.9786, 10.7266, 55.6503)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D31C8 #7CC831
analogous
#3231C8 #7D31C8 #C831C8
triadic
#7D31C8 #C87D31 #31C87D
tetradic
#7D31C8 #C83231 #7CC831 #31C8C8
square
#7D31C8 #C83231 #7CC831 #31C8C8
split-complementary
#7D31C8 #C8C831 #31C832
monochromatic
#401966 #5E2597 #7D31C8 #9C5FD8 #BA90E4

Accessibility & contrast

On white

6.68
#7D31C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#7D31C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D31C8
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D31C8#FFFFFF#000000##FFFFFF
##7D31C81.006.683.156.68
#FFFFFF6.681.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCC
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#6D587B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7d31c8;
/* rgb */ color: rgb(125, 49, 200);
/* oklch */ color: oklch(50.2% 0.218 301.7);
Tailwind
colors: {
  custom: {
    50: '#a971da',
    500: '#7d31c8',
    950: '#000000',
  },
}
SCSS
$custom: #7d31c8;
$custom-light: #a971da;
$custom-dark: #000000;
JSON
{
  "hex": "#7d31c8",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 270.199,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50211,
    "c": 0.21769,
    "h": 301.7
  },
  "luminance": 0.10727
}

Semantic roles & 50–950 ramp

primary
#7D31C8
secondary
#AACE86
accent
#E44493
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7D31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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