#7F1CB4#7F1CB4

#7F1CB4 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 47.1% C 0.218 H 309.4°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7F1CB4
RGBrgb(127, 28, 180)
HSLhsl(279, 73%, 41%)
HSVhsv(279, 84%, 71%)
CMYKcmyk(29.4%, 84.4%, 0%, 29.4%)
CIE-LABlab(35.28, 62.90, -59.37)
CIE-LCHlch(35.28, 86.49, 316.66°)
OKLaboklab(47.09% 0.1385 -0.1687)
OKLCHoklch(47.09% 0.218 309.4)
XYZxyz(17.4042, 8.6382, 43.9217)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1CB4 #51B41C
analogous
#331CB4 #7F1CB4 #B41C9D
triadic
#7F1CB4 #B47F1C #1CB47F
tetradic
#7F1CB4 #B4331C #51B41C #1C9DB4
square
#7F1CB4 #B4331C #51B41C #1C9DB4
split-complementary
#7F1CB4 #9DB41C #1CB433
monochromatic
#340C4A #5A147F #7F1CB4 #A12FDF #B964E7

Accessibility & contrast

On white

7.70
#7F1CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7F1CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1CB4
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1CB4#FFFFFF#000000##FFFFFF
##7F1CB41.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#0054B1
Tritanopia (blue-blind)
#77466B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f1cb4;
/* rgb */ color: rgb(127, 28, 180);
/* oklch */ color: oklch(47.1% 0.218 309.4);
Tailwind
colors: {
  custom: {
    50: '#aa67cb',
    500: '#7f1cb4',
    950: '#000000',
  },
}
SCSS
$custom: #7f1cb4;
$custom-light: #aa67cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1cb4",
  "rgb": {
    "r": 127,
    "g": 28,
    "b": 180
  },
  "hsl": {
    "h": 279.079,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47091,
    "c": 0.21828,
    "h": 309.4
  },
  "luminance": 0.08638
}

Semantic roles & 50–950 ramp

primary
#7F1CB4
secondary
#86CC60
accent
#F03878
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7F1CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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