#7E1FBB#7E1FBB

#7E1FBB is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.7% C 0.222 H 306.9°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#7E1FBB
RGBrgb(126, 31, 187)
HSLhsl(277, 72%, 43%)
HSVhsv(277, 83%, 73%)
CMYKcmyk(32.6%, 83.4%, 0%, 26.7%)
CIE-LABlab(35.99, 63.36, -62.35)
CIE-LCHlch(35.99, 88.89, 315.46°)
OKLaboklab(47.73% 0.1331 -0.1776)
OKLCHoklch(47.73% 0.222 306.9)
XYZxyz(18.0618, 9.0037, 47.7904)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1FBB #5CBB1F
analogous
#301FBB #7E1FBB #BB1FAA
triadic
#7E1FBB #BB7E1F #1FBB7E
tetradic
#7E1FBB #BB301F #5CBB1F #1FAABB
square
#7E1FBB #BB301F #5CBB1F #1FAABB
split-complementary
#7E1FBB #AABB1F #1FBB30
monochromatic
#370E52 #5B1687 #7E1FBB #9E39DE #B76EE7

Accessibility & contrast

On white

7.50
#7E1FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7E1FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1FBB
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1FBB#FFFFFF#000000##FFFFFF
##7E1FBB1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1fbb;
/* rgb */ color: rgb(126, 31, 187);
/* oklch */ color: oklch(47.7% 0.222 306.9);
Tailwind
colors: {
  custom: {
    50: '#aa69d0',
    500: '#7e1fbb',
    950: '#000000',
  },
}
SCSS
$custom: #7e1fbb;
$custom-light: #aa69d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1fbb",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 187
  },
  "hsl": {
    "h": 276.538,
    "s": 71.56,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47732,
    "c": 0.22193,
    "h": 306.9
  },
  "luminance": 0.09003
}

Semantic roles & 50–950 ramp

primary
#7E1FBB
secondary
#90CD69
accent
#EE3A80
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110714
muted
#807A82

Preview Lab

Preview with #7E1FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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