#7D21B2#7D21B2

#7D21B2 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.0% C 0.212 H 308.8°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#7D21B2
RGBrgb(125, 33, 178)
HSLhsl(278, 69%, 41%)
HSVhsv(278, 81%, 70%)
CMYKcmyk(29.8%, 81.5%, 0%, 30.2%)
CIE-LABlab(35.33, 60.68, -58.11)
CIE-LCHlch(35.33, 84.02, 316.24°)
OKLaboklab(47.01% 0.1328 -0.1652)
OKLCHoklch(47.01% 0.212 308.8)
XYZxyz(17.0355, 8.6623, 42.8854)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D21B2 #56B221
analogous
#3521B2 #7D21B2 #B2219F
triadic
#7D21B2 #B27D21 #21B27D
tetradic
#7D21B2 #B23521 #56B221 #219FB2
square
#7D21B2 #B23521 #56B221 #219FB2
split-complementary
#7D21B2 #9FB221 #21B235
monochromatic
#340E4B #59177E #7D21B2 #9E36DA #B76AE3

Accessibility & contrast

On white

7.69
#7D21B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7D21B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D21B2
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D21B2#FFFFFF#000000##FFFFFF
##7D21B21.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0054AF
Tritanopia (blue-blind)
#75476B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7d21b2;
/* rgb */ color: rgb(125, 33, 178);
/* oklch */ color: oklch(47.0% 0.212 308.8);
Tailwind
colors: {
  custom: {
    50: '#a869ca',
    500: '#7d21b2',
    950: '#000000',
  },
}
SCSS
$custom: #7d21b2;
$custom-light: #a869ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7d21b2",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 178
  },
  "hsl": {
    "h": 278.069,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47013,
    "c": 0.21196,
    "h": 308.8
  },
  "luminance": 0.08662
}

Semantic roles & 50–950 ramp

primary
#7D21B2
secondary
#8AC966
accent
#EC3C7C
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D21B2

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

Preview Lab → · Contrast checker → · Palette generator →

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