#7F36CA#7F36CA

#7F36CA is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.1% C 0.215 H 301.6°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#7F36CA
RGBrgb(127, 54, 202)
HSLhsl(270, 58%, 50%)
HSVhsv(270, 73%, 79%)
CMYKcmyk(37.1%, 73.3%, 0%, 20.8%)
CIE-LABlab(40.27, 58.43, -64.15)
CIE-LCHlch(40.27, 86.77, 312.33°)
OKLaboklab(51.13% 0.1124 -0.183)
OKLCHoklch(51.13% 0.215 301.6)
XYZxyz(20.7297, 11.4145, 56.9768)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F36CA #81CA36
analogous
#3637CA #7F36CA #C936CA
triadic
#7F36CA #CA7F36 #36CA7F
tetradic
#7F36CA #CA3637 #81CA36 #36CAC9
square
#7F36CA #CA3637 #81CA36 #36CAC9
split-complementary
#7F36CA #CAC936 #37CA36
monochromatic
#421C6A #61299A #7F36CA #9E66D7 #BD97E4

Accessibility & contrast

On white

6.40
#7F36CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7F36CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F36CA
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F36CA#FFFFFF#000000##FFFFFF
##7F36CA1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#005EC7
Tritanopia (blue-blind)
#6F5B7D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f36ca;
/* rgb */ color: rgb(127, 54, 202);
/* oklch */ color: oklch(51.1% 0.215 301.6);
Tailwind
colors: {
  custom: {
    50: '#aa74db',
    500: '#7f36ca',
    950: '#000000',
  },
}
SCSS
$custom: #7f36ca;
$custom-light: #aa74db;
$custom-dark: #000000;
JSON
{
  "hex": "#7f36ca",
  "rgb": {
    "r": 127,
    "g": 54,
    "b": 202
  },
  "hsl": {
    "h": 269.595,
    "s": 58.268,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51128,
    "c": 0.21474,
    "h": 301.6
  },
  "luminance": 0.11415
}

Semantic roles & 50–950 ramp

primary
#7F36CA
secondary
#AECF8D
accent
#E14695
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F36CA

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

Preview Lab → · Contrast checker → · Palette generator →

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