#7B2A85#7B2A85

#7B2A85 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.3% C 0.160 H 323.1°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#7B2A85
RGBrgb(123, 42, 133)
HSLhsl(293, 52%, 34%)
HSVhsv(293, 68%, 52%)
CMYKcmyk(7.5%, 68.4%, 0%, 47.8%)
CIE-LABlab(33.05, 47.69, -34.45)
CIE-LCHlch(33.05, 58.83, 324.16°)
OKLaboklab(44.35% 0.128 -0.0959)
OKLCHoklch(44.35% 0.16 323.1)
XYZxyz(13.2296, 7.5611, 22.9484)
Luminance0.0756 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2A85 #34852A
analogous
#4E2A85 #7B2A85 #852A62
triadic
#7B2A85 #857B2A #2A857B
tetradic
#7B2A85 #854E2A #34852A #2A6285
square
#7B2A85 #854E2A #34852A #2A6285
split-complementary
#7B2A85 #62852A #2A854E
monochromatic
#250D28 #501B56 #7B2A85 #A639B4 #C05DCC

Accessibility & contrast

On white

8.36
#7B2A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7B2A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2A85
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2A85#FFFFFF#000000##FFFFFF
##7B2A851.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b2a85;
/* rgb */ color: rgb(123, 42, 133);
/* oklch */ color: oklch(44.3% 0.160 323.1);
Tailwind
colors: {
  custom: {
    50: '#a46ba9',
    500: '#7b2a85',
    950: '#000000',
  },
}
SCSS
$custom: #7b2a85;
$custom-light: #a46ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2a85",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 133
  },
  "hsl": {
    "h": 293.407,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44345,
    "c": 0.15991,
    "h": 323.1
  },
  "luminance": 0.0756
}

Semantic roles & 50–950 ramp

primary
#7B2A85
secondary
#63B259
accent
#DB4C5C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B2A85

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

Preview Lab → · Contrast checker → · Palette generator →

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