#7E33AB#7E33AB

#7E33AB is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.3% C 0.186 H 309.8°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#7E33AB
RGBrgb(126, 51, 171)
HSLhsl(278, 54%, 44%)
HSVhsv(278, 70%, 67%)
CMYKcmyk(26.3%, 70.2%, 0%, 32.9%)
CIE-LABlab(37.38, 52.39, -50.61)
CIE-LCHlch(37.38, 72.84, 315.99°)
OKLaboklab(48.33% 0.1192 -0.1432)
OKLCHoklch(48.33% 0.186 309.8)
XYZxyz(17.1372, 9.7439, 39.4982)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E33AB #60AB33
analogous
#4233AB #7E33AB #AB339C
triadic
#7E33AB #AB7E33 #33AB7E
tetradic
#7E33AB #AB4233 #60AB33 #339CAB
square
#7E33AB #AB4233 #60AB33 #339CAB
split-complementary
#7E33AB #9CAB33 #33AB42
monochromatic
#39174D #5B257C #7E33AB #9D50CB #B77FD9

Accessibility & contrast

On white

7.12
#7E33AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7E33AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E33AB
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E33AB#FFFFFF#000000##FFFFFF
##7E33AB1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e33ab;
/* rgb */ color: rgb(126, 51, 171);
/* oklch */ color: oklch(48.3% 0.186 309.8);
Tailwind
colors: {
  custom: {
    50: '#a771c5',
    500: '#7e33ab',
    950: '#000000',
  },
}
SCSS
$custom: #7e33ab;
$custom-light: #a771c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e33ab",
  "rgb": {
    "r": 126,
    "g": 51,
    "b": 171
  },
  "hsl": {
    "h": 277.5,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48328,
    "c": 0.18631,
    "h": 309.8
  },
  "luminance": 0.09744
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E33AB

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

Preview Lab → · Contrast checker → · Palette generator →

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