#7F1FB4#7F1FB4

#7F1FB4 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.3% C 0.216 H 309.2°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#7F1FB4
RGBrgb(127, 31, 180)
HSLhsl(279, 71%, 41%)
HSVhsv(279, 83%, 71%)
CMYKcmyk(29.4%, 82.8%, 0%, 29.4%)
CIE-LABlab(35.57, 62.04, -58.89)
CIE-LCHlch(35.57, 85.54, 316.49°)
OKLaboklab(47.3% 0.1365 -0.1674)
OKLCHoklch(47.3% 0.216 309.2)
XYZxyz(17.4789, 8.7876, 43.9466)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1FB4 #54B41F
analogous
#351FB4 #7F1FB4 #B41F9F
triadic
#7F1FB4 #B47F1F #1FB47F
tetradic
#7F1FB4 #B4351F #54B41F #1F9FB4
square
#7F1FB4 #B4351F #54B41F #1F9FB4
split-complementary
#7F1FB4 #9FB41F #1FB435
monochromatic
#350D4C #5A1680 #7F1FB4 #A034DC #B968E5

Accessibility & contrast

On white

7.62
#7F1FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7F1FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1FB4
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1FB4#FFFFFF#000000##FFFFFF
##7F1FB41.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#0055B1
Tritanopia (blue-blind)
#77476C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f1fb4;
/* rgb */ color: rgb(127, 31, 180);
/* oklch */ color: oklch(47.3% 0.216 309.2);
Tailwind
colors: {
  custom: {
    50: '#aa68cb',
    500: '#7f1fb4',
    950: '#000000',
  },
}
SCSS
$custom: #7f1fb4;
$custom-light: #aa68cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1fb4",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 278.658,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47295,
    "c": 0.21595,
    "h": 309.2
  },
  "luminance": 0.08787
}

Semantic roles & 50–950 ramp

primary
#7F1FB4
secondary
#89CB64
accent
#ED3A7A
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7F1FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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