#7F30C7#7F30C7

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

Color values

HEX#7F30C7
RGBrgb(127, 48, 199)
HSLhsl(271, 61%, 48%)
HSVhsv(271, 76%, 78%)
CMYKcmyk(36.2%, 75.9%, 0%, 22%)
CIE-LABlab(39.16, 60.23, -64.22)
CIE-LCHlch(39.16, 88.05, 313.16°)
OKLaboklab(50.27% 0.1184 -0.1832)
OKLCHoklch(50.27% 0.218 302.9)
XYZxyz(20.1157, 10.7494, 55.0368)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F30C7 #78C730
analogous
#3330C7 #7F30C7 #C730C3
triadic
#7F30C7 #C77F30 #30C77F
tetradic
#7F30C7 #C73330 #78C730 #30C3C7
square
#7F30C7 #C73330 #78C730 #30C3C7
split-complementary
#7F30C7 #C3C730 #30C733
monochromatic
#401864 #602496 #7F30C7 #9D5CD8 #BB8EE4

Accessibility & contrast

On white

6.67
#7F30C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F30C7
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F30C7#FFFFFF#000000##FFFFFF
##7F30C71.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCB
Deuteranopia (green-blind)
#005CC4
Tritanopia (blue-blind)
#70577A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f30c7;
/* rgb */ color: rgb(127, 48, 199);
/* oklch */ color: oklch(50.3% 0.218 302.9);
Tailwind
colors: {
  custom: {
    50: '#aa71d9',
    500: '#7f30c7',
    950: '#000000',
  },
}
SCSS
$custom: #7f30c7;
$custom-light: #aa71d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f30c7",
  "rgb": {
    "r": 127,
    "g": 48,
    "b": 199
  },
  "hsl": {
    "h": 271.391,
    "s": 61.134,
    "l": 48.431
  },
  "oklch": {
    "l": 0.5027,
    "c": 0.21809,
    "h": 302.9
  },
  "luminance": 0.10749
}

Semantic roles & 50–950 ramp

primary
#7F30C7
secondary
#A8CE85
accent
#E44490
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7F30C7

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

Preview Lab → · Contrast checker → · Palette generator →

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