#7F33B8#7F33B8

#7F33B8 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 49.4% C 0.200 H 306.4°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#7F33B8
RGBrgb(127, 51, 184)
HSLhsl(274, 57%, 46%)
HSVhsv(274, 72%, 72%)
CMYKcmyk(31%, 72.3%, 0%, 27.8%)
CIE-LABlab(38.45, 55.53, -56.58)
CIE-LCHlch(38.45, 79.28, 314.46°)
OKLaboklab(49.41% 0.1187 -0.1607)
OKLCHoklch(49.41% 0.2 306.4)
XYZxyz(18.5861, 10.3406, 46.3549)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F33B8 #6CB833
analogous
#3C33B8 #7F33B8 #B833AE
triadic
#7F33B8 #B87F33 #33B87F
tetradic
#7F33B8 #B83C33 #6CB833 #33AEB8
square
#7F33B8 #B83C33 #6CB833 #33AEB8
split-complementary
#7F33B8 #AEB833 #33B83C
monochromatic
#3D1858 #5E2688 #7F33B8 #9D58D1 #B988DE

Accessibility & contrast

On white

6.84
#7F33B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7F33B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F33B8
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F33B8#FFFFFF#000000##FFFFFF
##7F33B81.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BC
Deuteranopia (green-blind)
#005BB5
Tritanopia (blue-blind)
#755272
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f33b8;
/* rgb */ color: rgb(127, 51, 184);
/* oklch */ color: oklch(49.4% 0.200 306.4);
Tailwind
colors: {
  custom: {
    50: '#a972ce',
    500: '#7f33b8',
    950: '#000000',
  },
}
SCSS
$custom: #7f33b8;
$custom-light: #a972ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7f33b8",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 184
  },
  "hsl": {
    "h": 274.286,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49411,
    "c": 0.19977,
    "h": 306.4
  },
  "luminance": 0.1034
}

Semantic roles & 50–950 ramp

primary
#7F33B8
secondary
#9EC87F
accent
#E04889
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F33B8

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

Preview Lab → · Contrast checker → · Palette generator →

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