#7B2186#7B2186

#7B2186 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.5% C 0.172 H 323.1°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#7B2186
RGBrgb(123, 33, 134)
HSLhsl(293, 60%, 33%)
HSVhsv(293, 75%, 53%)
CMYKcmyk(8.2%, 75.4%, 0%, 47.5%)
CIE-LABlab(31.85, 51.45, -36.98)
CIE-LCHlch(31.85, 63.36, 324.29°)
OKLaboklab(43.51% 0.1376 -0.1032)
OKLCHoklch(43.51% 0.172 323.1)
XYZxyz(13.0149, 7.0207, 23.2192)
Luminance0.0702 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2186 #2C8621
analogous
#482186 #7B2186 #86215F
triadic
#7B2186 #867B21 #21867B
tetradic
#7B2186 #864821 #2C8621 #215F86
square
#7B2186 #864821 #2C8621 #215F86
split-complementary
#7B2186 #5F8621 #218648
monochromatic
#210924 #4E1555 #7B2186 #A82DB7 #C54ED3

Accessibility & contrast

On white

8.74
#7B2186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7B2186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2186
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2186#FFFFFF#000000##FFFFFF
##7B21861.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004489
Deuteranopia (green-blind)
#324E84
Tritanopia (blue-blind)
#7D3452
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7b2186;
/* rgb */ color: rgb(123, 33, 134);
/* oklch */ color: oklch(43.5% 0.172 323.1);
Tailwind
colors: {
  custom: {
    50: '#a566aa',
    500: '#7b2186',
    950: '#000000',
  },
}
SCSS
$custom: #7b2186;
$custom-light: #a566aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2186",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 293.465,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43507,
    "c": 0.17205,
    "h": 323.1
  },
  "luminance": 0.0702
}

Semantic roles & 50–950 ramp

primary
#7B2186
secondary
#58B74C
accent
#E44456
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B2186

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

Preview Lab → · Contrast checker → · Palette generator →

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