#7F36CB#7F36CB

#7F36CB is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.2% C 0.216 H 301.3°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#7F36CB
RGBrgb(127, 54, 203)
HSLhsl(269, 59%, 50%)
HSVhsv(269, 73%, 80%)
CMYKcmyk(37.4%, 73.4%, 0%, 20.4%)
CIE-LABlab(40.35, 58.66, -64.60)
CIE-LCHlch(40.35, 87.26, 312.24°)
OKLaboklab(51.21% 0.1122 -0.1843)
OKLCHoklch(51.21% 0.216 301.3)
XYZxyz(20.8484, 11.4620, 57.6023)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F36CB #82CB36
analogous
#3637CB #7F36CB #C936CB
triadic
#7F36CB #CB7F36 #36CB7F
tetradic
#7F36CB #CB3637 #82CB36 #36CBC9
square
#7F36CB #CB3637 #82CB36 #36CBC9
split-complementary
#7F36CB #CBC936 #37CB36
monochromatic
#431C6B #61289C #7F36CB #9E67D8 #BD97E4

Accessibility & contrast

On white

6.38
#7F36CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#7F36CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F36CB
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F36CB#FFFFFF#000000##FFFFFF
##7F36CB1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECF
Deuteranopia (green-blind)
#005EC8
Tritanopia (blue-blind)
#6E5C7E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f36cb;
/* rgb */ color: rgb(127, 54, 203);
/* oklch */ color: oklch(51.2% 0.216 301.3);
Tailwind
colors: {
  custom: {
    50: '#aa74dc',
    500: '#7f36cb',
    950: '#000000',
  },
}
SCSS
$custom: #7f36cb;
$custom-light: #aa74dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f36cb",
  "rgb": {
    "r": 127,
    "g": 54,
    "b": 203
  },
  "hsl": {
    "h": 269.396,
    "s": 58.893,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51208,
    "c": 0.21577,
    "h": 301.3
  },
  "luminance": 0.11462
}

Semantic roles & 50–950 ramp

primary
#7F36CB
secondary
#AFD08D
accent
#E24695
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F36CB

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

Preview Lab → · Contrast checker → · Palette generator →

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