#7F33AB#7F33AB

#7F33AB is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.5% C 0.187 H 310.2°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#7F33AB
RGBrgb(127, 51, 171)
HSLhsl(278, 54%, 44%)
HSVhsv(278, 70%, 67%)
CMYKcmyk(25.7%, 70.2%, 0%, 32.9%)
CIE-LABlab(37.52, 52.60, -50.37)
CIE-LCHlch(37.52, 72.83, 316.24°)
OKLaboklab(48.46% 0.1205 -0.1425)
OKLCHoklch(48.46% 0.187 310.2)
XYZxyz(17.2855, 9.8203, 39.5051)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F33AB #5FAB33
analogous
#4333AB #7F33AB #AB339B
triadic
#7F33AB #AB7F33 #33AB7F
tetradic
#7F33AB #AB4333 #5FAB33 #339BAB
square
#7F33AB #AB4333 #5FAB33 #339BAB
split-complementary
#7F33AB #9BAB33 #33AB43
monochromatic
#39174D #5C257C #7F33AB #9E50CB #B87FD9

Accessibility & contrast

On white

7.09
#7F33AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7F33AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F33AB
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F33AB#FFFFFF#000000##FFFFFF
##7F33AB1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AF
Deuteranopia (green-blind)
#1F59A8
Tritanopia (blue-blind)
#794D6B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f33ab;
/* rgb */ color: rgb(127, 51, 171);
/* oklch */ color: oklch(48.5% 0.187 310.2);
Tailwind
colors: {
  custom: {
    50: '#a871c5',
    500: '#7f33ab',
    950: '#000000',
  },
}
SCSS
$custom: #7f33ab;
$custom-light: #a871c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f33ab",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 171
  },
  "hsl": {
    "h": 278,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48456,
    "c": 0.18662,
    "h": 310.2
  },
  "luminance": 0.0982
}

Semantic roles & 50–950 ramp

primary
#7F33AB
secondary
#93C278
accent
#DD4A80
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F33AB

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

Preview Lab → · Contrast checker → · Palette generator →

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