#7E33B2#7E33B2

#7E33B2 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.8% C 0.193 H 307.7°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#7E33B2
RGBrgb(126, 51, 178)
HSLhsl(275, 55%, 45%)
HSVhsv(275, 71%, 70%)
CMYKcmyk(29.2%, 71.3%, 0%, 30.2%)
CIE-LABlab(37.87, 53.97, -53.97)
CIE-LCHlch(37.87, 76.32, 315.00°)
OKLaboklab(48.84% 0.1182 -0.1531)
OKLCHoklch(48.84% 0.193 307.7)
XYZxyz(17.8222, 10.0179, 43.1056)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E33B2 #67B233
analogous
#3E33B2 #7E33B2 #B233A7
triadic
#7E33B2 #B27E33 #33B27E
tetradic
#7E33B2 #B23E33 #67B233 #33A7B2
square
#7E33B2 #B23E33 #67B233 #33A7B2
split-complementary
#7E33B2 #A7B233 #33B23E
monochromatic
#3B1853 #5C2582 #7E33B2 #9C54CE #B884DC

Accessibility & contrast

On white

6.99
#7E33B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#7E33B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E33B2
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E33B2#FFFFFF#000000##FFFFFF
##7E33B21.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0C5AAF
Tritanopia (blue-blind)
#76506F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e33b2;
/* rgb */ color: rgb(126, 51, 178);
/* oklch */ color: oklch(48.8% 0.193 307.7);
Tailwind
colors: {
  custom: {
    50: '#a871ca',
    500: '#7e33b2',
    950: '#000000',
  },
}
SCSS
$custom: #7e33b2;
$custom-light: #a871ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e33b2",
  "rgb": {
    "r": 126,
    "g": 51,
    "b": 178
  },
  "hsl": {
    "h": 275.433,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48838,
    "c": 0.19342,
    "h": 307.7
  },
  "luminance": 0.10018
}

Semantic roles & 50–950 ramp

primary
#7E33B2
secondary
#9AC57C
accent
#DF4986
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E33B2

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

Preview Lab → · Contrast checker → · Palette generator →

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