#7F33B1#7F33B1

#7F33B1 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.9% C 0.193 H 308.4°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#7F33B1
RGBrgb(127, 51, 177)
HSLhsl(276, 55%, 45%)
HSVhsv(276, 71%, 69%)
CMYKcmyk(28.2%, 71.2%, 0%, 30.6%)
CIE-LABlab(37.94, 53.94, -53.26)
CIE-LCHlch(37.94, 75.81, 315.36°)
OKLaboklab(48.89% 0.1197 -0.151)
OKLCHoklch(48.89% 0.193 308.4)
XYZxyz(17.8704, 10.0543, 42.5857)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F33B1 #65B133
analogous
#4033B1 #7F33B1 #B133A4
triadic
#7F33B1 #B17F33 #33B17F
tetradic
#7F33B1 #B14033 #65B133 #33A4B1
square
#7F33B1 #B14033 #65B133 #33A4B1
split-complementary
#7F33B1 #A4B133 #33B140
monochromatic
#3B1852 #5D2581 #7F33B1 #9D54CE #B883DB

Accessibility & contrast

On white

6.97
#7F33B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7F33B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F33B1
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F33B1#FFFFFF#000000##FFFFFF
##7F33B11.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B5
Deuteranopia (green-blind)
#125AAE
Tritanopia (blue-blind)
#774F6F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f33b1;
/* rgb */ color: rgb(127, 51, 177);
/* oklch */ color: oklch(48.9% 0.193 308.4);
Tailwind
colors: {
  custom: {
    50: '#a971c9',
    500: '#7f33b1',
    950: '#000000',
  },
}
SCSS
$custom: #7f33b1;
$custom-light: #a971c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f33b1",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 177
  },
  "hsl": {
    "h": 276.19,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48891,
    "c": 0.19269,
    "h": 308.4
  },
  "luminance": 0.10054
}

Semantic roles & 50–950 ramp

primary
#7F33B1
secondary
#98C57B
accent
#DF4984
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F33B1

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

Preview Lab → · Contrast checker → · Palette generator →

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