#7D218B#7D218B

#7D218B is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.177 H 322.0°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#7D218B
RGBrgb(125, 33, 139)
HSLhsl(292, 62%, 34%)
HSVhsv(292, 76%, 55%)
CMYKcmyk(10.1%, 76.3%, 0%, 45.5%)
CIE-LABlab(32.51, 52.82, -39.02)
CIE-LCHlch(32.51, 65.67, 323.55°)
OKLaboklab(44.14% 0.1397 -0.1091)
OKLCHoklch(44.14% 0.177 322)
XYZxyz(13.6610, 7.3125, 25.1130)
Luminance0.0731 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D218B #2F8B21
analogous
#48218B #7D218B #8B2164
triadic
#7D218B #8B7D21 #218B7D
tetradic
#7D218B #8B4821 #2F8B21 #21648B
square
#7D218B #8B4821 #2F8B21 #21648B
split-complementary
#7D218B #648B21 #218B48
monochromatic
#240A28 #51155A #7D218B #A92DBC #C451D6

Accessibility & contrast

On white

8.53
#7D218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7D218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D218B
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D218B#FFFFFF#000000##FFFFFF
##7D218B1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#305089
Tritanopia (blue-blind)
#7E3555
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7d218b;
/* rgb */ color: rgb(125, 33, 139);
/* oklch */ color: oklch(44.1% 0.177 322.0);
Tailwind
colors: {
  custom: {
    50: '#a667ad',
    500: '#7d218b',
    950: '#000000',
  },
}
SCSS
$custom: #7d218b;
$custom-light: #a667ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7d218b",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 292.075,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44141,
    "c": 0.17727,
    "h": 322
  },
  "luminance": 0.07312
}

Semantic roles & 50–950 ramp

primary
#7D218B
secondary
#5DB94F
accent
#E54358
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7D218B

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

Preview Lab → · Contrast checker → · Palette generator →

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