#7B218C#7B218C

#7B218C is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.9% C 0.177 H 320.7°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#7B218C
RGBrgb(123, 33, 140)
HSLhsl(290, 62%, 34%)
HSVhsv(290, 76%, 55%)
CMYKcmyk(12.1%, 76.4%, 0%, 45.1%)
CIE-LABlab(32.24, 52.58, -40.08)
CIE-LCHlch(32.24, 66.12, 322.68°)
OKLaboklab(43.91% 0.1372 -0.1123)
OKLCHoklch(43.91% 0.177 320.7)
XYZxyz(13.4453, 7.1928, 25.4860)
Luminance0.0719 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B218C #328C21
analogous
#46218C #7B218C #8C2168
triadic
#7B218C #8C7B21 #218C7B
tetradic
#7B218C #8C4621 #328C21 #21688C
square
#7B218C #8C4621 #328C21 #21688C
split-complementary
#7B218C #688C21 #218C46
monochromatic
#240A29 #4F155A #7B218C #A72DBE #C151D6

Accessibility & contrast

On white

8.61
#7B218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B218C
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B218C#FFFFFF#000000##FFFFFF
##7B218C1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#2D4F8A
Tritanopia (blue-blind)
#7C3655
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b218c;
/* rgb */ color: rgb(123, 33, 140);
/* oklch */ color: oklch(43.9% 0.177 320.7);
Tailwind
colors: {
  custom: {
    50: '#a567ae',
    500: '#7b218c',
    950: '#000000',
  },
}
SCSS
$custom: #7b218c;
$custom-light: #a567ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7b218c",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 290.467,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.43907,
    "c": 0.17728,
    "h": 320.7
  },
  "luminance": 0.07192
}

Semantic roles & 50–950 ramp

primary
#7B218C
secondary
#60B94F
accent
#E5435D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B218C

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

Preview Lab → · Contrast checker → · Palette generator →

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