#7B218D#7B218D

#7B218D is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.0% C 0.178 H 320.3°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#7B218D
RGBrgb(123, 33, 141)
HSLhsl(290, 62%, 34%)
HSVhsv(290, 77%, 55%)
CMYKcmyk(12.8%, 76.6%, 0%, 44.7%)
CIE-LABlab(32.31, 52.78, -40.59)
CIE-LCHlch(32.31, 66.58, 322.43°)
OKLaboklab(43.97% 0.1371 -0.1138)
OKLCHoklch(43.97% 0.178 320.3)
XYZxyz(13.5194, 7.2225, 25.8761)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B218D #338D21
analogous
#45218D #7B218D #8D2169
triadic
#7B218D #8D7B21 #218D7B
tetradic
#7B218D #8D4521 #338D21 #21698D
square
#7B218D #8D4521 #338D21 #21698D
split-complementary
#7B218D #698D21 #218D45
monochromatic
#240A2A #50155B #7B218D #A62DBF #C052D6

Accessibility & contrast

On white

8.59
#7B218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7B218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B218D
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B218D#FFFFFF#000000##FFFFFF
##7B218D1.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#2C4F8B
Tritanopia (blue-blind)
#7C3756
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b218d;
/* rgb */ color: rgb(123, 33, 141);
/* oklch */ color: oklch(44.0% 0.178 320.3);
Tailwind
colors: {
  custom: {
    50: '#a567af',
    500: '#7b218d',
    950: '#000000',
  },
}
SCSS
$custom: #7b218d;
$custom-light: #a567af;
$custom-dark: #000000;
JSON
{
  "hex": "#7b218d",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 290,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.43975,
    "c": 0.17816,
    "h": 320.3
  },
  "luminance": 0.07222
}

Semantic roles & 50–950 ramp

primary
#7B218D
secondary
#62BA50
accent
#E5435E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B218D

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

Preview Lab → · Contrast checker → · Palette generator →

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