#7F30C5#7F30C5

#7F30C5 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.1% C 0.216 H 303.4°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#7F30C5
RGBrgb(127, 48, 197)
HSLhsl(272, 61%, 48%)
HSVhsv(272, 76%, 77%)
CMYKcmyk(35.5%, 75.6%, 0%, 22.7%)
CIE-LABlab(39.00, 59.77, -63.31)
CIE-LCHlch(39.00, 87.07, 313.35°)
OKLaboklab(50.11% 0.1188 -0.1805)
OKLCHoklch(50.11% 0.216 303.4)
XYZxyz(19.8850, 10.6572, 53.8219)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F30C5 #76C530
analogous
#3430C5 #7F30C5 #C530C0
triadic
#7F30C5 #C57F30 #30C57F
tetradic
#7F30C5 #C53430 #76C530 #30C0C5
square
#7F30C5 #C53430 #76C530 #30C0C5
split-complementary
#7F30C5 #C0C530 #30C534
monochromatic
#401863 #5F2494 #7F30C5 #9D5BD7 #BA8CE3

Accessibility & contrast

On white

6.71
#7F30C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7F30C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F30C5
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F30C5#FFFFFF#000000##FFFFFF
##7F30C51.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC9
Deuteranopia (green-blind)
#005BC2
Tritanopia (blue-blind)
#715679
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f30c5;
/* rgb */ color: rgb(127, 48, 197);
/* oklch */ color: oklch(50.1% 0.216 303.4);
Tailwind
colors: {
  custom: {
    50: '#aa71d8',
    500: '#7f30c5',
    950: '#000000',
  },
}
SCSS
$custom: #7f30c5;
$custom-light: #aa71d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f30c5",
  "rgb": {
    "r": 127,
    "g": 48,
    "b": 197
  },
  "hsl": {
    "h": 271.812,
    "s": 60.816,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50109,
    "c": 0.2161,
    "h": 303.4
  },
  "luminance": 0.10657
}

Semantic roles & 50–950 ramp

primary
#7F30C5
secondary
#A6CD84
accent
#E4448F
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #7F30C5

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

Preview Lab → · Contrast checker → · Palette generator →

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