#7F21B4#7F21B4

#7F21B4 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.4% C 0.214 H 309.1°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7F21B4
RGBrgb(127, 33, 180)
HSLhsl(278, 69%, 42%)
HSVhsv(278, 82%, 71%)
CMYKcmyk(29.4%, 81.7%, 0%, 29.4%)
CIE-LABlab(35.78, 61.43, -58.54)
CIE-LCHlch(35.78, 84.86, 316.38°)
OKLaboklab(47.44% 0.1351 -0.1664)
OKLCHoklch(47.44% 0.214 309.1)
XYZxyz(17.5328, 8.8954, 43.9645)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F21B4 #56B421
analogous
#3521B4 #7F21B4 #B421A0
triadic
#7F21B4 #B47F21 #21B47F
tetradic
#7F21B4 #B43521 #56B421 #21A0B4
square
#7F21B4 #B43521 #56B421 #21A0B4
split-complementary
#7F21B4 #A0B421 #21B435
monochromatic
#360E4D #5B1880 #7F21B4 #A038DA #B96BE4

Accessibility & contrast

On white

7.56
#7F21B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7F21B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F21B4
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F21B4#FFFFFF#000000##FFFFFF
##7F21B41.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#0055B1
Tritanopia (blue-blind)
#77486C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f21b4;
/* rgb */ color: rgb(127, 33, 180);
/* oklch */ color: oklch(47.4% 0.214 309.1);
Tailwind
colors: {
  custom: {
    50: '#aa69cb',
    500: '#7f21b4',
    950: '#000000',
  },
}
SCSS
$custom: #7f21b4;
$custom-light: #aa69cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f21b4",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 180
  },
  "hsl": {
    "h": 278.367,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47441,
    "c": 0.21428,
    "h": 309.1
  },
  "luminance": 0.08895
}

Semantic roles & 50–950 ramp

primary
#7F21B4
secondary
#8BCA67
accent
#EC3C7B
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7F21B4

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

Preview Lab → · Contrast checker → · Palette generator →

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