#7F21B2#7F21B2

#7F21B2 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.3% C 0.212 H 309.6°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#7F21B2
RGBrgb(127, 33, 178)
HSLhsl(279, 69%, 41%)
HSVhsv(279, 81%, 70%)
CMYKcmyk(28.7%, 81.5%, 0%, 30.2%)
CIE-LABlab(35.62, 61.01, -57.61)
CIE-LCHlch(35.62, 83.91, 316.64°)
OKLaboklab(47.28% 0.1356 -0.1636)
OKLCHoklch(47.28% 0.212 309.6)
XYZxyz(17.3305, 8.8145, 42.8993)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F21B2 #54B221
analogous
#3721B2 #7F21B2 #B2219D
triadic
#7F21B2 #B27F21 #21B27F
tetradic
#7F21B2 #B23721 #54B221 #219DB2
square
#7F21B2 #B23721 #54B221 #219DB2
split-complementary
#7F21B2 #9DB221 #21B237
monochromatic
#350E4B #5A177E #7F21B2 #A036DA #B96AE3

Accessibility & contrast

On white

7.60
#7F21B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7F21B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F21B2
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F21B2#FFFFFF#000000##FFFFFF
##7F21B21.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0055AF
Tritanopia (blue-blind)
#77476B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f21b2;
/* rgb */ color: rgb(127, 33, 178);
/* oklch */ color: oklch(47.3% 0.212 309.6);
Tailwind
colors: {
  custom: {
    50: '#a969ca',
    500: '#7f21b2',
    950: '#000000',
  },
}
SCSS
$custom: #7f21b2;
$custom-light: #a969ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f21b2",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 178
  },
  "hsl": {
    "h": 278.897,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47283,
    "c": 0.21249,
    "h": 309.6
  },
  "luminance": 0.08814
}

Semantic roles & 50–950 ramp

primary
#7F21B2
secondary
#89C966
accent
#EC3C7A
background
#FAF6FC
surface
#F5ECF8
border
#CFC7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #7F21B2

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

Preview Lab → · Contrast checker → · Palette generator →

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