#7F30C6#7F30C6

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

Color values

HEX#7F30C6
RGBrgb(127, 48, 198)
HSLhsl(272, 61%, 48%)
HSVhsv(272, 76%, 78%)
CMYKcmyk(35.9%, 75.8%, 0%, 22.4%)
CIE-LABlab(39.08, 60.00, -63.77)
CIE-LCHlch(39.08, 87.56, 313.26°)
OKLaboklab(50.19% 0.1186 -0.1818)
OKLCHoklch(50.19% 0.217 303.1)
XYZxyz(20.0000, 10.7031, 54.4274)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F30C6 #77C630
analogous
#3430C6 #7F30C6 #C630C2
triadic
#7F30C6 #C67F30 #30C67F
tetradic
#7F30C6 #C63430 #77C630 #30C2C6
square
#7F30C6 #C63430 #77C630 #30C2C6
split-complementary
#7F30C6 #C2C630 #30C634
monochromatic
#401863 #5F2495 #7F30C6 #9D5CD7 #BB8DE3

Accessibility & contrast

On white

6.69
#7F30C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7F30C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F30C6
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F30C6#FFFFFF#000000##FFFFFF
##7F30C61.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f30c6;
/* rgb */ color: rgb(127, 48, 198);
/* oklch */ color: oklch(50.2% 0.217 303.1);
Tailwind
colors: {
  custom: {
    50: '#aa71d8',
    500: '#7f30c6',
    950: '#000000',
  },
}
SCSS
$custom: #7f30c6;
$custom-light: #aa71d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f30c6",
  "rgb": {
    "r": 127,
    "g": 48,
    "b": 198
  },
  "hsl": {
    "h": 271.6,
    "s": 60.976,
    "l": 48.235
  },
  "oklch": {
    "l": 0.5019,
    "c": 0.21709,
    "h": 303.1
  },
  "luminance": 0.10703
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F30C6

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

Preview Lab → · Contrast checker → · Palette generator →

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