#7B2180#7B2180

#7B2180 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.1% C 0.167 H 325.7°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#7B2180
RGBrgb(123, 33, 128)
HSLhsl(297, 59%, 32%)
HSVhsv(297, 74%, 50%)
CMYKcmyk(3.9%, 74.2%, 0%, 49.8%)
CIE-LABlab(31.48, 50.34, -33.83)
CIE-LCHlch(31.48, 60.65, 326.10°)
OKLaboklab(43.12% 0.1379 -0.094)
OKLCHoklch(43.12% 0.167 325.7)
XYZxyz(12.6082, 6.8580, 21.0775)
Luminance0.0686 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2180 #268021
analogous
#4C2180 #7B2180 #802156
triadic
#7B2180 #807B21 #21807B
tetradic
#7B2180 #804C21 #268021 #215680
square
#7B2180 #804C21 #268021 #215680
split-complementary
#7B2180 #568021 #21804C
monochromatic
#1D081F #4C144F #7B2180 #AA2EB1 #CA4BD1

Accessibility & contrast

On white

8.86
#7B2180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7B2180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2180
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2180#FFFFFF#000000##FFFFFF
##7B21801.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064383
Deuteranopia (green-blind)
#364E7E
Tritanopia (blue-blind)
#7E314E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b2180;
/* rgb */ color: rgb(123, 33, 128);
/* oklch */ color: oklch(43.1% 0.167 325.7);
Tailwind
colors: {
  custom: {
    50: '#a466a5',
    500: '#7b2180',
    950: '#000000',
  },
}
SCSS
$custom: #7b2180;
$custom-light: #a466a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2180",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 296.842,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43121,
    "c": 0.1669,
    "h": 325.7
  },
  "luminance": 0.06857
}

Semantic roles & 50–950 ramp

primary
#7B2180
secondary
#50B34A
accent
#E2464E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B2180

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

Preview Lab → · Contrast checker → · Palette generator →

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