#7B2A93#7B2A93

#7B2A93 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.173 H 317.4°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#7B2A93
RGBrgb(123, 42, 147)
HSLhsl(286, 56%, 37%)
HSVhsv(286, 71%, 58%)
CMYKcmyk(16.3%, 71.4%, 0%, 42.4%)
CIE-LABlab(33.93, 50.48, -41.68)
CIE-LCHlch(33.93, 65.47, 320.46°)
OKLaboklab(45.26% 0.1274 -0.117)
OKLCHoklch(45.26% 0.173 317.4)
XYZxyz(14.2620, 7.9741, 28.3860)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2A93 #42932A
analogous
#472A93 #7B2A93 #932A77
triadic
#7B2A93 #937B2A #2A937B
tetradic
#7B2A93 #93472A #42932A #2A7793
square
#7B2A93 #93472A #42932A #2A7793
split-complementary
#7B2A93 #77932A #2A9347
monochromatic
#2B0F34 #531C63 #7B2A93 #A338C3 #BA65D3

Accessibility & contrast

On white

8.09
#7B2A93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7B2A93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2A93
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2A93#FFFFFF#000000##FFFFFF
##7B2A931.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B96
Deuteranopia (green-blind)
#2D5291
Tritanopia (blue-blind)
#7A3F5B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7b2a93;
/* rgb */ color: rgb(123, 42, 147);
/* oklch */ color: oklch(45.3% 0.173 317.4);
Tailwind
colors: {
  custom: {
    50: '#a56bb3',
    500: '#7b2a93',
    950: '#000000',
  },
}
SCSS
$custom: #7b2a93;
$custom-light: #a56bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2a93",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 147
  },
  "hsl": {
    "h": 286.286,
    "s": 55.556,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45256,
    "c": 0.17301,
    "h": 317.4
  },
  "luminance": 0.07973
}

Semantic roles & 50–950 ramp

primary
#7B2A93
secondary
#74B960
accent
#DF496B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2A93

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

Preview Lab → · Contrast checker → · Palette generator →

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