#7B2A86#7B2A86

#7B2A86 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.4% C 0.161 H 322.7°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#7B2A86
RGBrgb(123, 42, 134)
HSLhsl(293, 52%, 35%)
HSVhsv(293, 69%, 53%)
CMYKcmyk(8.2%, 68.7%, 0%, 47.5%)
CIE-LABlab(33.11, 47.89, -34.98)
CIE-LCHlch(33.11, 59.30, 323.86°)
OKLaboklab(44.41% 0.1279 -0.0974)
OKLCHoklch(44.41% 0.161 322.7)
XYZxyz(13.2990, 7.5889, 23.3139)
Luminance0.0759 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2A86 #35862A
analogous
#4D2A86 #7B2A86 #862A63
triadic
#7B2A86 #867B2A #2A867B
tetradic
#7B2A86 #864D2A #35862A #2A6386
square
#7B2A86 #864D2A #35862A #2A6386
split-complementary
#7B2A86 #63862A #2A864D
monochromatic
#250D29 #501B57 #7B2A86 #A639B5 #BF5ECD

Accessibility & contrast

On white

8.34
#7B2A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7B2A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2A86
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2A86#FFFFFF#000000##FFFFFF
##7B2A861.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114889
Deuteranopia (green-blind)
#375184
Tritanopia (blue-blind)
#7D3954
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b2a86;
/* rgb */ color: rgb(123, 42, 134);
/* oklch */ color: oklch(44.4% 0.161 322.7);
Tailwind
colors: {
  custom: {
    50: '#a46baa',
    500: '#7b2a86',
    950: '#000000',
  },
}
SCSS
$custom: #7b2a86;
$custom-light: #a46baa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2a86",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 134
  },
  "hsl": {
    "h": 292.826,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44408,
    "c": 0.16083,
    "h": 322.7
  },
  "luminance": 0.07588
}

Semantic roles & 50–950 ramp

primary
#7B2A86
secondary
#64B25A
accent
#DC4C5D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B2A86

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

Preview Lab → · Contrast checker → · Palette generator →

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