#7B218E#7B218E

#7B218E is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.0% C 0.179 H 319.9°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#7B218E
RGBrgb(123, 33, 142)
HSLhsl(290, 62%, 34%)
HSVhsv(290, 77%, 56%)
CMYKcmyk(13.4%, 76.8%, 0%, 44.3%)
CIE-LABlab(32.37, 52.97, -41.10)
CIE-LCHlch(32.37, 67.05, 322.19°)
OKLaboklab(44.04% 0.137 -0.1153)
OKLCHoklch(44.04% 0.179 319.9)
XYZxyz(13.5941, 7.2524, 26.2697)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B218E #348E21
analogous
#44218E #7B218E #8E216B
triadic
#7B218E #8E7B21 #218E7B
tetradic
#7B218E #8E4421 #348E21 #216B8E
square
#7B218E #8E4421 #348E21 #216B8E
split-complementary
#7B218E #6B8E21 #218E44
monochromatic
#250A2B #50155C #7B218E #A62DC0 #C052D7

Accessibility & contrast

On white

8.57
#7B218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7B218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B218E
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B218E#FFFFFF#000000##FFFFFF
##7B218E1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#2B4F8C
Tritanopia (blue-blind)
#7B3756
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b218e;
/* rgb */ color: rgb(123, 33, 142);
/* oklch */ color: oklch(44.0% 0.179 319.9);
Tailwind
colors: {
  custom: {
    50: '#a567b0',
    500: '#7b218e',
    950: '#000000',
  },
}
SCSS
$custom: #7b218e;
$custom-light: #a567b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b218e",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 289.541,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44044,
    "c": 0.17904,
    "h": 319.9
  },
  "luminance": 0.07252
}

Semantic roles & 50–950 ramp

primary
#7B218E
secondary
#63BA50
accent
#E5425F
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B218E

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

Preview Lab → · Contrast checker → · Palette generator →

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