#7B2187#7B2187

#7B2187 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.173 H 322.7°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#7B2187
RGBrgb(123, 33, 135)
HSLhsl(293, 61%, 33%)
HSVhsv(293, 76%, 53%)
CMYKcmyk(8.9%, 75.6%, 0%, 47.1%)
CIE-LABlab(31.92, 51.63, -37.50)
CIE-LCHlch(31.92, 63.82, 324.01°)
OKLaboklab(43.57% 0.1376 -0.1048)
OKLCHoklch(43.57% 0.173 322.7)
XYZxyz(13.0850, 7.0487, 23.5883)
Luminance0.0705 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2187 #2D8721
analogous
#482187 #7B2187 #872160
triadic
#7B2187 #877B21 #21877B
tetradic
#7B2187 #874821 #2D8721 #216087
square
#7B2187 #874821 #2D8721 #216087
split-complementary
#7B2187 #608721 #218748
monochromatic
#210925 #4E1556 #7B2187 #A82DB8 #C44FD4

Accessibility & contrast

On white

8.72
#7B2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7B2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2187
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2187#FFFFFF#000000##FFFFFF
##7B21871.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#314F85
Tritanopia (blue-blind)
#7D3452
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7b2187;
/* rgb */ color: rgb(123, 33, 135);
/* oklch */ color: oklch(43.6% 0.173 322.7);
Tailwind
colors: {
  custom: {
    50: '#a566aa',
    500: '#7b2187',
    950: '#000000',
  },
}
SCSS
$custom: #7b2187;
$custom-light: #a566aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2187",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 292.941,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43573,
    "c": 0.17292,
    "h": 322.7
  },
  "luminance": 0.07048
}

Semantic roles & 50–950 ramp

primary
#7B2187
secondary
#59B74D
accent
#E44457
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B2187

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

Preview Lab → · Contrast checker → · Palette generator →

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