#7F33A2#7F33A2

#7F33A2 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.8% C 0.178 H 313.1°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#7F33A2
RGBrgb(127, 51, 162)
HSLhsl(281, 52%, 42%)
HSVhsv(281, 69%, 64%)
CMYKcmyk(21.6%, 68.5%, 0%, 36.5%)
CIE-LABlab(36.91, 50.62, -45.96)
CIE-LCHlch(36.91, 68.38, 317.76°)
OKLaboklab(47.83% 0.1214 -0.1295)
OKLCHoklch(47.83% 0.178 313.1)
XYZxyz(16.4567, 9.4888, 35.1400)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F33A2 #56A233
analogous
#4833A2 #7F33A2 #A2338E
triadic
#7F33A2 #A27F33 #33A27F
tetradic
#7F33A2 #A24833 #56A233 #338EA2
square
#7F33A2 #A24833 #56A233 #338EA2
split-complementary
#7F33A2 #8EA233 #33A248
monochromatic
#361645 #5B2473 #7F33A2 #A04CC7 #B97AD5

Accessibility & contrast

On white

7.25
#7F33A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7F33A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F33A2
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F33A2#FFFFFF#000000##FFFFFF
##7F33A21.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#2B599F
Tritanopia (blue-blind)
#7B4966
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f33a2;
/* rgb */ color: rgb(127, 51, 162);
/* oklch */ color: oklch(47.8% 0.178 313.1);
Tailwind
colors: {
  custom: {
    50: '#a871be',
    500: '#7f33a2',
    950: '#000000',
  },
}
SCSS
$custom: #7f33a2;
$custom-light: #a871be;
$custom-dark: #000000;
JSON
{
  "hex": "#7f33a2",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 162
  },
  "hsl": {
    "h": 281.081,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47827,
    "c": 0.17754,
    "h": 313.1
  },
  "luminance": 0.09488
}

Semantic roles & 50–950 ramp

primary
#7F33A2
secondary
#8BBE73
accent
#DC4C79
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F33A2

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

Preview Lab → · Contrast checker → · Palette generator →

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