#7B2188#7B2188

#7B2188 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.6% C 0.174 H 322.3°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#7B2188
RGBrgb(123, 33, 136)
HSLhsl(292, 61%, 33%)
HSVhsv(292, 76%, 53%)
CMYKcmyk(9.6%, 75.7%, 0%, 46.7%)
CIE-LABlab(31.98, 51.82, -38.02)
CIE-LCHlch(31.98, 64.27, 323.73°)
OKLaboklab(43.64% 0.1375 -0.1063)
OKLCHoklch(43.64% 0.174 322.3)
XYZxyz(13.1557, 7.0770, 23.9608)
Luminance0.0708 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2188 #2E8821
analogous
#472188 #7B2188 #882161
triadic
#7B2188 #887B21 #21887B
tetradic
#7B2188 #884721 #2E8821 #216188
square
#7B2188 #884721 #2E8821 #216188
split-complementary
#7B2188 #618821 #218847
monochromatic
#220925 #4E1557 #7B2188 #A82DB9 #C34FD4

Accessibility & contrast

On white

8.69
#7B2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7B2188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2188
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2188#FFFFFF#000000##FFFFFF
##7B21881.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458B
Deuteranopia (green-blind)
#304F86
Tritanopia (blue-blind)
#7D3453
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7b2188;
/* rgb */ color: rgb(123, 33, 136);
/* oklch */ color: oklch(43.6% 0.174 322.3);
Tailwind
colors: {
  custom: {
    50: '#a566ab',
    500: '#7b2188',
    950: '#000000',
  },
}
SCSS
$custom: #7b2188;
$custom-light: #a566ab;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2188",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 292.427,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43639,
    "c": 0.17379,
    "h": 322.3
  },
  "luminance": 0.07076
}

Semantic roles & 50–950 ramp

primary
#7B2188
secondary
#5BB84D
accent
#E44458
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B2188

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

Preview Lab → · Contrast checker → · Palette generator →

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