#7F1BB4#7F1BB4

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

Color values

HEX#7F1BB4
RGBrgb(127, 27, 180)
HSLhsl(279, 74%, 41%)
HSVhsv(279, 85%, 71%)
CMYKcmyk(29.4%, 85%, 0%, 29.4%)
CIE-LABlab(35.19, 63.17, -59.52)
CIE-LCHlch(35.19, 86.79, 316.71°)
OKLaboklab(47.03% 0.1391 -0.1692)
OKLCHoklch(47.03% 0.219 309.4)
XYZxyz(17.3809, 8.5915, 43.9139)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1BB4 #50B41B
analogous
#331BB4 #7F1BB4 #B41B9C
triadic
#7F1BB4 #B47F1B #1BB47F
tetradic
#7F1BB4 #B4331B #50B41B #1B9CB4
square
#7F1BB4 #B4331B #50B41B #1B9CB4
split-complementary
#7F1BB4 #9CB41B #1BB433
monochromatic
#340B4A #59137F #7F1BB4 #A22DDF #B962E7

Accessibility & contrast

On white

7.73
#7F1BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7F1BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1BB4
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1BB4#FFFFFF#000000##FFFFFF
##7F1BB41.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.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: #7f1bb4;
/* rgb */ color: rgb(127, 27, 180);
/* oklch */ color: oklch(47.0% 0.219 309.4);
Tailwind
colors: {
  custom: {
    50: '#aa67cb',
    500: '#7f1bb4',
    950: '#000000',
  },
}
SCSS
$custom: #7f1bb4;
$custom-light: #aa67cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1bb4",
  "rgb": {
    "r": 127,
    "g": 27,
    "b": 180
  },
  "hsl": {
    "h": 279.216,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47027,
    "c": 0.21901,
    "h": 309.4
  },
  "luminance": 0.08591
}

Semantic roles & 50–950 ramp

primary
#7F1BB4
secondary
#85CC5F
accent
#F13777
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7F1BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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