#7E36A2#7E36A2

#7E36A2 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.1% C 0.173 H 312.4°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#7E36A2
RGBrgb(126, 54, 162)
HSLhsl(280, 50%, 42%)
HSVhsv(280, 67%, 64%)
CMYKcmyk(22.2%, 66.7%, 0%, 36.5%)
CIE-LABlab(37.27, 49.01, -45.40)
CIE-LCHlch(37.27, 66.80, 317.19°)
OKLaboklab(48.06% 0.1166 -0.1279)
OKLCHoklch(48.06% 0.173 312.4)
XYZxyz(16.4438, 9.6830, 35.1782)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E36A2 #5AA236
analogous
#4836A2 #7E36A2 #A23690
triadic
#7E36A2 #A27E36 #36A27E
tetradic
#7E36A2 #A24836 #5AA236 #3690A2
square
#7E36A2 #A24836 #5AA236 #3690A2
split-complementary
#7E36A2 #90A236 #36A248
monochromatic
#371746 #5A2774 #7E36A2 #9E50C5 #B87ED4

Accessibility & contrast

On white

7.15
#7E36A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7E36A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E36A2
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E36A2#FFFFFF#000000##FFFFFF
##7E36A21.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#2D59A0
Tritanopia (blue-blind)
#7A4B67
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e36a2;
/* rgb */ color: rgb(126, 54, 162);
/* oklch */ color: oklch(48.1% 0.173 312.4);
Tailwind
colors: {
  custom: {
    50: '#a772be',
    500: '#7e36a2',
    950: '#000000',
  },
}
SCSS
$custom: #7e36a2;
$custom-light: #a772be;
$custom-dark: #000000;
JSON
{
  "hex": "#7e36a2",
  "rgb": {
    "r": 126,
    "g": 54,
    "b": 162
  },
  "hsl": {
    "h": 280,
    "s": 50,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48055,
    "c": 0.17311,
    "h": 312.4
  },
  "luminance": 0.09683
}

Semantic roles & 50–950 ramp

primary
#7E36A2
secondary
#8EBD77
accent
#DA4E7D
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E36A2

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

Preview Lab → · Contrast checker → · Palette generator →

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