#7F33C1#7F33C1

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

Color values

HEX#7F33C1
RGBrgb(127, 51, 193)
HSLhsl(272, 58%, 48%)
HSVhsv(272, 74%, 76%)
CMYKcmyk(34.2%, 73.6%, 0%, 24.3%)
CIE-LABlab(39.12, 57.60, -60.77)
CIE-LCHlch(39.12, 83.73, 313.47°)
OKLaboklab(50.1% 0.117 -0.173)
OKLCHoklch(50.1% 0.209 304.1)
XYZxyz(19.5596, 10.7300, 51.4824)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F33C1 #75C133
analogous
#3833C1 #7F33C1 #C133BC
triadic
#7F33C1 #C17F33 #33C17F
tetradic
#7F33C1 #C13833 #75C133 #33BCC1
square
#7F33C1 #C13833 #75C133 #33BCC1
split-complementary
#7F33C1 #BCC133 #33C138
monochromatic
#3F1960 #5F2691 #7F33C1 #9D5DD4 #BA8DE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F33C1#FFFFFF#000000##FFFFFF
##7F33C11.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)
#005AC5
Deuteranopia (green-blind)
#005CBE
Tritanopia (blue-blind)
#725677
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f33c1;
/* rgb */ color: rgb(127, 51, 193);
/* oklch */ color: oklch(50.1% 0.209 304.1);
Tailwind
colors: {
  custom: {
    50: '#aa72d5',
    500: '#7f33c1',
    950: '#000000',
  },
}
SCSS
$custom: #7f33c1;
$custom-light: #aa72d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f33c1",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 193
  },
  "hsl": {
    "h": 272.113,
    "s": 58.197,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50101,
    "c": 0.20888,
    "h": 304.1
  },
  "luminance": 0.1073
}

Semantic roles & 50–950 ramp

primary
#7F33C1
secondary
#A5CB84
accent
#E1468E
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F33C1

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

Preview Lab → · Contrast checker → · Palette generator →

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