#7E36B2#7E36B2

#7E36B2 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 49.2% C 0.190 H 307.4°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#7E36B2
RGBrgb(126, 54, 178)
HSLhsl(275, 53%, 45%)
HSVhsv(275, 70%, 70%)
CMYKcmyk(29.2%, 69.7%, 0%, 30.2%)
CIE-LABlab(38.36, 52.62, -53.19)
CIE-LCHlch(38.36, 74.82, 314.69°)
OKLaboklab(49.18% 0.1151 -0.1508)
OKLCHoklch(49.18% 0.19 307.4)
XYZxyz(17.9575, 10.2885, 43.1507)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E36B2 #6AB236
analogous
#4036B2 #7E36B2 #B236A8
triadic
#7E36B2 #B27E36 #36B27E
tetradic
#7E36B2 #B24036 #6AB236 #36A8B2
square
#7E36B2 #B24036 #6AB236 #36A8B2
split-complementary
#7E36B2 #A8B236 #36B240
monochromatic
#3C1A54 #5D2883 #7E36B2 #9C59CD #B888DB

Accessibility & contrast

On white

6.87
#7E36B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7E36B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E36B2
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E36B2#FFFFFF#000000##FFFFFF
##7E36B21.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#145BAF
Tritanopia (blue-blind)
#765270
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e36b2;
/* rgb */ color: rgb(126, 54, 178);
/* oklch */ color: oklch(49.2% 0.190 307.4);
Tailwind
colors: {
  custom: {
    50: '#a873ca',
    500: '#7e36b2',
    950: '#000000',
  },
}
SCSS
$custom: #7e36b2;
$custom-light: #a873ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e36b2",
  "rgb": {
    "r": 126,
    "g": 54,
    "b": 178
  },
  "hsl": {
    "h": 274.839,
    "s": 53.448,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49181,
    "c": 0.1897,
    "h": 307.4
  },
  "luminance": 0.10288
}

Semantic roles & 50–950 ramp

primary
#7E36B2
secondary
#9CC57F
accent
#DD4B88
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E36B2

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

Preview Lab → · Contrast checker → · Palette generator →

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