#7F21BD#7F21BD

#7F21BD is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.2% C 0.222 H 306.6°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#7F21BD
RGBrgb(127, 33, 189)
HSLhsl(276, 70%, 44%)
HSVhsv(276, 83%, 74%)
CMYKcmyk(32.8%, 82.5%, 0%, 25.9%)
CIE-LABlab(36.51, 63.34, -62.68)
CIE-LCHlch(36.51, 89.11, 315.30°)
OKLaboklab(48.17% 0.1326 -0.1785)
OKLCHoklch(48.17% 0.222 306.6)
XYZxyz(18.4795, 9.2741, 48.9508)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F21BD #5FBD21
analogous
#3121BD #7F21BD #BD21AD
triadic
#7F21BD #BD7F21 #21BD7F
tetradic
#7F21BD #BD3121 #5FBD21 #21ADBD
square
#7F21BD #BD3121 #5FBD21 #21ADBD
split-complementary
#7F21BD #ADBD21 #21BD31
monochromatic
#390F55 #5C1889 #7F21BD #9E3EDD #B872E6

Accessibility & contrast

On white

7.36
#7F21BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7F21BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F21BD
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F21BD#FFFFFF#000000##FFFFFF
##7F21BD1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C1
Deuteranopia (green-blind)
#0056BA
Tritanopia (blue-blind)
#744C71
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f21bd;
/* rgb */ color: rgb(127, 33, 189);
/* oklch */ color: oklch(48.2% 0.222 306.6);
Tailwind
colors: {
  custom: {
    50: '#aa6ad2',
    500: '#7f21bd',
    950: '#000000',
  },
}
SCSS
$custom: #7f21bd;
$custom-light: #aa6ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f21bd",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 276.154,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48171,
    "c": 0.22238,
    "h": 306.6
  },
  "luminance": 0.09274
}

Semantic roles & 50–950 ramp

primary
#7F21BD
secondary
#93CD6D
accent
#ED3B82
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110714
muted
#807A83

Preview Lab

Preview with #7F21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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