#7B2A91#7B2A91

#7B2A91 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.171 H 318.2°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#7B2A91
RGBrgb(123, 42, 145)
HSLhsl(287, 55%, 37%)
HSVhsv(287, 71%, 57%)
CMYKcmyk(15.2%, 71%, 0%, 43.1%)
CIE-LABlab(33.80, 50.08, -40.66)
CIE-LCHlch(33.80, 64.51, 320.92°)
OKLaboklab(45.12% 0.1276 -0.1141)
OKLCHoklch(45.12% 0.171 318.2)
XYZxyz(14.1065, 7.9118, 27.5667)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2A91 #40912A
analogous
#472A91 #7B2A91 #912A74
triadic
#7B2A91 #917B2A #2A917B
tetradic
#7B2A91 #91472A #40912A #2A7491
square
#7B2A91 #91472A #40912A #2A7491
split-complementary
#7B2A91 #74912A #2A9147
monochromatic
#2A0F32 #531C62 #7B2A91 #A338C0 #BA63D2

Accessibility & contrast

On white

8.13
#7B2A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7B2A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2A91
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2A91#FFFFFF#000000##FFFFFF
##7B2A911.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A94
Deuteranopia (green-blind)
#2F528F
Tritanopia (blue-blind)
#7A3E5A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b2a91;
/* rgb */ color: rgb(123, 42, 145);
/* oklch */ color: oklch(45.1% 0.171 318.2);
Tailwind
colors: {
  custom: {
    50: '#a46bb2',
    500: '#7b2a91',
    950: '#000000',
  },
}
SCSS
$custom: #7b2a91;
$custom-light: #a46bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2a91",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 145
  },
  "hsl": {
    "h": 287.184,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45121,
    "c": 0.17112,
    "h": 318.2
  },
  "luminance": 0.07911
}

Semantic roles & 50–950 ramp

primary
#7B2A91
secondary
#72B85F
accent
#DE4969
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2A91

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

Preview Lab → · Contrast checker → · Palette generator →

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