#7E33B5#7E33B5

#7E33B5 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 49.1% C 0.196 H 306.8°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#7E33B5
RGBrgb(126, 51, 181)
HSLhsl(275, 56%, 45%)
HSVhsv(275, 72%, 71%)
CMYKcmyk(30.4%, 71.8%, 0%, 29%)
CIE-LABlab(38.09, 54.65, -55.39)
CIE-LCHlch(38.09, 77.81, 314.61°)
OKLaboklab(49.06% 0.1178 -0.1573)
OKLCHoklch(49.06% 0.196 306.8)
XYZxyz(18.1267, 10.1397, 44.7093)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E33B5 #6AB533
analogous
#3D33B5 #7E33B5 #B533AB
triadic
#7E33B5 #B57E33 #33B57E
tetradic
#7E33B5 #B53D33 #6AB533 #33ABB5
square
#7E33B5 #B53D33 #6AB533 #33ABB5
split-complementary
#7E33B5 #ABB533 #33B53D
monochromatic
#3C1856 #5D2685 #7E33B5 #9C56CF #B886DD

Accessibility & contrast

On white

6.94
#7E33B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7E33B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E33B5
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E33B5#FFFFFF#000000##FFFFFF
##7E33B51.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#005AB2
Tritanopia (blue-blind)
#755171
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e33b5;
/* rgb */ color: rgb(126, 51, 181);
/* oklch */ color: oklch(49.1% 0.196 306.8);
Tailwind
colors: {
  custom: {
    50: '#a871cc',
    500: '#7e33b5',
    950: '#000000',
  },
}
SCSS
$custom: #7e33b5;
$custom-light: #a871cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e33b5",
  "rgb": {
    "r": 126,
    "g": 51,
    "b": 181
  },
  "hsl": {
    "h": 274.615,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49061,
    "c": 0.19648,
    "h": 306.8
  },
  "luminance": 0.10139
}

Semantic roles & 50–950 ramp

primary
#7E33B5
secondary
#9CC67D
accent
#DF4888
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E33B5

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

Preview Lab → · Contrast checker → · Palette generator →

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