#7B2A9E#7B2A9E

#7B2A9E is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.184 H 313.5°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#7B2A9E
RGBrgb(123, 42, 158)
HSLhsl(282, 58%, 39%)
HSVhsv(282, 73%, 62%)
CMYKcmyk(22.2%, 73.4%, 0%, 38%)
CIE-LABlab(34.67, 52.78, -47.18)
CIE-LCHlch(34.67, 70.79, 318.21°)
OKLaboklab(46.02% 0.1263 -0.1332)
OKLCHoklch(46.02% 0.184 313.5)
XYZxyz(15.1668, 8.3360, 33.1512)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2A9E #4D9E2A
analogous
#412A9E #7B2A9E #9E2A87
triadic
#7B2A9E #9E7B2A #2A9E7B
tetradic
#7B2A9E #9E412A #4D9E2A #2A879E
square
#7B2A9E #9E412A #4D9E2A #2A879E
split-complementary
#7B2A9E #879E2A #2A9E41
monochromatic
#30103D #551D6E #7B2A9E #9F3ACB #B76BD8

Accessibility & contrast

On white

7.87
#7B2A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7B2A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2A9E
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2A9E#FFFFFF#000000##FFFFFF
##7B2A9E1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA1
Deuteranopia (green-blind)
#20539B
Tritanopia (blue-blind)
#774362
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b2a9e;
/* rgb */ color: rgb(123, 42, 158);
/* oklch */ color: oklch(46.0% 0.184 313.5);
Tailwind
colors: {
  custom: {
    50: '#a56cbb',
    500: '#7b2a9e',
    950: '#000000',
  },
}
SCSS
$custom: #7b2a9e;
$custom-light: #a56cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2a9e",
  "rgb": {
    "r": 123,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 281.897,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46024,
    "c": 0.18352,
    "h": 313.5
  },
  "luminance": 0.08336
}

Semantic roles & 50–950 ramp

primary
#7B2A9E
secondary
#80BE66
accent
#E14775
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B2A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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