#7B2C87#7B2C87

#7B2C87 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.7% C 0.159 H 322.2°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#7B2C87
RGBrgb(123, 44, 135)
HSLhsl(292, 51%, 35%)
HSVhsv(292, 67%, 53%)
CMYKcmyk(8.9%, 67.4%, 0%, 47.1%)
CIE-LABlab(33.48, 47.21, -35.00)
CIE-LCHlch(33.48, 58.77, 323.45°)
OKLaboklab(44.7% 0.1256 -0.0975)
OKLCHoklch(44.7% 0.159 322.2)
XYZxyz(13.4418, 7.7623, 23.7072)
Luminance0.0776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2C87 #38872C
analogous
#4E2C87 #7B2C87 #872C65
triadic
#7B2C87 #877B2C #2C877B
tetradic
#7B2C87 #874E2C #38872C #2C6587
square
#7B2C87 #874E2C #38872C #2C6587
split-complementary
#7B2C87 #65872C #2C874E
monochromatic
#270E2B #511D59 #7B2C87 #A53BB5 #BE62CC

Accessibility & contrast

On white

8.23
#7B2C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7B2C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2C87
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2C87#FFFFFF#000000##FFFFFF
##7B2C871.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14498A
Deuteranopia (green-blind)
#385285
Tritanopia (blue-blind)
#7D3B56
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b2c87;
/* rgb */ color: rgb(123, 44, 135);
/* oklch */ color: oklch(44.7% 0.159 322.2);
Tailwind
colors: {
  custom: {
    50: '#a46caa',
    500: '#7b2c87',
    950: '#000000',
  },
}
SCSS
$custom: #7b2c87;
$custom-light: #a46caa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2c87",
  "rgb": {
    "r": 123,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 292.088,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44695,
    "c": 0.15902,
    "h": 322.2
  },
  "luminance": 0.07762
}

Semantic roles & 50–950 ramp

primary
#7B2C87
secondary
#68B25D
accent
#DA4D60
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B2C87

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

Preview Lab → · Contrast checker → · Palette generator →

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