#7F33AC#7F33AC

#7F33AC is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.5% C 0.188 H 309.9°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#7F33AC
RGBrgb(127, 51, 172)
HSLhsl(278, 54%, 44%)
HSVhsv(278, 70%, 67%)
CMYKcmyk(26.2%, 70.3%, 0%, 32.5%)
CIE-LABlab(37.59, 52.82, -50.86)
CIE-LCHlch(37.59, 73.33, 316.09°)
OKLaboklab(48.53% 0.1204 -0.1439)
OKLCHoklch(48.53% 0.188 309.9)
XYZxyz(17.3812, 9.8586, 40.0090)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F33AC #60AC33
analogous
#4233AC #7F33AC #AC339C
triadic
#7F33AC #AC7F33 #33AC7F
tetradic
#7F33AC #AC4233 #60AC33 #339CAC
square
#7F33AC #AC4233 #60AC33 #339CAC
split-complementary
#7F33AC #9CAC33 #33AC42
monochromatic
#39174E #5C257D #7F33AC #9E51CB #B880D9

Accessibility & contrast

On white

7.07
#7F33AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7F33AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F33AC
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F33AC#FFFFFF#000000##FFFFFF
##7F33AC1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B0
Deuteranopia (green-blind)
#1D5AA9
Tritanopia (blue-blind)
#794D6C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f33ac;
/* rgb */ color: rgb(127, 51, 172);
/* oklch */ color: oklch(48.5% 0.188 309.9);
Tailwind
colors: {
  custom: {
    50: '#a871c5',
    500: '#7f33ac',
    950: '#000000',
  },
}
SCSS
$custom: #7f33ac;
$custom-light: #a871c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f33ac",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 172
  },
  "hsl": {
    "h": 277.686,
    "s": 54.26,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48528,
    "c": 0.18763,
    "h": 309.9
  },
  "luminance": 0.09858
}

Semantic roles & 50–950 ramp

primary
#7F33AC
secondary
#94C278
accent
#DE4A81
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F33AC

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

Preview Lab → · Contrast checker → · Palette generator →

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