#7F33B2#7F33B2

#7F33B2 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 49.0% C 0.194 H 308.1°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#7F33B2
RGBrgb(127, 51, 178)
HSLhsl(276, 55%, 45%)
HSVhsv(276, 71%, 70%)
CMYKcmyk(28.7%, 71.3%, 0%, 30.2%)
CIE-LABlab(38.01, 54.17, -53.74)
CIE-LCHlch(38.01, 76.30, 315.23°)
OKLaboklab(48.96% 0.1196 -0.1524)
OKLCHoklch(48.96% 0.194 308.1)
XYZxyz(17.9704, 10.0943, 43.1126)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F33B2 #66B233
analogous
#4033B2 #7F33B2 #B233A5
triadic
#7F33B2 #B27F33 #33B27F
tetradic
#7F33B2 #B24033 #66B233 #33A5B2
square
#7F33B2 #B24033 #66B233 #33A5B2
split-complementary
#7F33B2 #A5B233 #33B240
monochromatic
#3B1853 #5D2582 #7F33B2 #9D54CE #B884DC

Accessibility & contrast

On white

6.96
#7F33B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#7F33B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F33B2
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F33B2#FFFFFF#000000##FFFFFF
##7F33B21.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#0F5AAF
Tritanopia (blue-blind)
#77506F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f33b2;
/* rgb */ color: rgb(127, 51, 178);
/* oklch */ color: oklch(49.0% 0.194 308.1);
Tailwind
colors: {
  custom: {
    50: '#a971ca',
    500: '#7f33b2',
    950: '#000000',
  },
}
SCSS
$custom: #7f33b2;
$custom-light: #a971ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f33b2",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 178
  },
  "hsl": {
    "h": 275.906,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48964,
    "c": 0.1937,
    "h": 308.1
  },
  "luminance": 0.10094
}

Semantic roles & 50–950 ramp

primary
#7F33B2
secondary
#99C57C
accent
#DF4985
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F33B2

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

Preview Lab → · Contrast checker → · Palette generator →

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