#7F36AB#7F36AB

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

Color values

HEX#7F36AB
RGBrgb(127, 54, 171)
HSLhsl(277, 52%, 44%)
HSVhsv(277, 68%, 67%)
CMYKcmyk(25.7%, 68.4%, 0%, 32.9%)
CIE-LABlab(38.01, 51.24, -49.59)
CIE-LCHlch(38.01, 71.30, 315.94°)
OKLaboklab(48.81% 0.1172 -0.1402)
OKLCHoklch(48.81% 0.183 309.9)
XYZxyz(17.4208, 10.0910, 39.5502)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F36AB #62AB36
analogous
#4536AB #7F36AB #AB369D
triadic
#7F36AB #AB7F36 #36AB7F
tetradic
#7F36AB #AB4536 #62AB36 #369DAB
square
#7F36AB #AB4536 #62AB36 #369DAB
split-complementary
#7F36AB #9DAB36 #36AB45
monochromatic
#3A194E #5C277C #7F36AB #9E55C9 #B883D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F36AB#FFFFFF#000000##FFFFFF
##7F36AB1.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)
#0056AE
Deuteranopia (green-blind)
#235BA8
Tritanopia (blue-blind)
#794F6C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f36ab;
/* rgb */ color: rgb(127, 54, 171);
/* oklch */ color: oklch(48.8% 0.183 309.9);
Tailwind
colors: {
  custom: {
    50: '#a873c5',
    500: '#7f36ab',
    950: '#000000',
  },
}
SCSS
$custom: #7f36ab;
$custom-light: #a873c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f36ab",
  "rgb": {
    "r": 127,
    "g": 54,
    "b": 171
  },
  "hsl": {
    "h": 277.436,
    "s": 52,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48805,
    "c": 0.18275,
    "h": 309.9
  },
  "luminance": 0.10091
}

Semantic roles & 50–950 ramp

primary
#7F36AB
secondary
#96C27B
accent
#DB4C82
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F36AB

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

Preview Lab → · Contrast checker → · Palette generator →

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