#7F33C5#7F33C5

#7F33C5 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.4% C 0.213 H 303.1°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#7F33C5
RGBrgb(127, 51, 197)
HSLhsl(271, 59%, 49%)
HSVhsv(271, 74%, 77%)
CMYKcmyk(35.5%, 74.1%, 0%, 22.7%)
CIE-LABlab(39.43, 58.53, -62.61)
CIE-LCHlch(39.43, 85.71, 313.07°)
OKLaboklab(50.41% 0.1162 -0.1784)
OKLCHoklch(50.41% 0.213 303.1)
XYZxyz(20.0119, 10.9109, 53.8642)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F33C5 #79C533
analogous
#3633C5 #7F33C5 #C533C2
triadic
#7F33C5 #C57F33 #33C57F
tetradic
#7F33C5 #C53633 #79C533 #33C2C5
square
#7F33C5 #C53633 #79C533 #33C2C5
split-complementary
#7F33C5 #C2C533 #33C536
monochromatic
#401A64 #602694 #7F33C5 #9D5FD6 #BB90E2

Accessibility & contrast

On white

6.60
#7F33C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7F33C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F33C5
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F33C5#FFFFFF#000000##FFFFFF
##7F33C51.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC9
Deuteranopia (green-blind)
#005CC2
Tritanopia (blue-blind)
#71587A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7f33c5;
/* rgb */ color: rgb(127, 51, 197);
/* oklch */ color: oklch(50.4% 0.213 303.1);
Tailwind
colors: {
  custom: {
    50: '#aa72d8',
    500: '#7f33c5',
    950: '#000000',
  },
}
SCSS
$custom: #7f33c5;
$custom-light: #aa72d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f33c5",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 197
  },
  "hsl": {
    "h": 271.233,
    "s": 58.871,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50414,
    "c": 0.21292,
    "h": 303.1
  },
  "luminance": 0.10911
}

Semantic roles & 50–950 ramp

primary
#7F33C5
secondary
#A8CD87
accent
#E24691
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #7F33C5

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

Preview Lab → · Contrast checker → · Palette generator →

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