#7F1FBB#7F1FBB

#7F1FBB is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.9% C 0.222 H 307.3°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7F1FBB
RGBrgb(127, 31, 187)
HSLhsl(277, 72%, 43%)
HSVhsv(277, 83%, 73%)
CMYKcmyk(32.1%, 83.4%, 0%, 26.7%)
CIE-LABlab(36.14, 63.51, -62.11)
CIE-LCHlch(36.14, 88.83, 315.64°)
OKLaboklab(47.86% 0.1345 -0.1768)
OKLCHoklch(47.86% 0.222 307.3)
XYZxyz(18.2101, 9.0801, 47.7974)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1FBB #5BBB1F
analogous
#311FBB #7F1FBB #BB1FA9
triadic
#7F1FBB #BB7F1F #1FBB7F
tetradic
#7F1FBB #BB311F #5BBB1F #1FA9BB
square
#7F1FBB #BB311F #5BBB1F #1FA9BB
split-complementary
#7F1FBB #A9BB1F #1FBB31
monochromatic
#380E52 #5B1687 #7F1FBB #9F39DE #B86EE7

Accessibility & contrast

On white

7.46
#7F1FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7F1FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1FBB
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1FBB#FFFFFF#000000##FFFFFF
##7F1FBB1.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#0056B8
Tritanopia (blue-blind)
#754B70
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f1fbb;
/* rgb */ color: rgb(127, 31, 187);
/* oklch */ color: oklch(47.9% 0.222 307.3);
Tailwind
colors: {
  custom: {
    50: '#aa69d0',
    500: '#7f1fbb',
    950: '#000000',
  },
}
SCSS
$custom: #7f1fbb;
$custom-light: #aa69d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1fbb",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 187
  },
  "hsl": {
    "h": 276.923,
    "s": 71.56,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47864,
    "c": 0.22216,
    "h": 307.3
  },
  "luminance": 0.0908
}

Semantic roles & 50–950 ramp

primary
#7F1FBB
secondary
#8FCD69
accent
#EE3A7F
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110714
muted
#807A82

Preview Lab

Preview with #7F1FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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