#7B2E9A#7B2E9A

#7B2E9A is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.175 H 314.5°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#7B2E9A
RGBrgb(123, 46, 154)
HSLhsl(283, 54%, 39%)
HSVhsv(283, 70%, 60%)
CMYKcmyk(20.1%, 70.1%, 0%, 39.6%)
CIE-LABlab(35.00, 50.24, -44.23)
CIE-LCHlch(35.00, 66.93, 318.64°)
OKLaboklab(46.17% 0.1224 -0.1245)
OKLCHoklch(46.17% 0.175 314.5)
XYZxyz(14.9771, 8.4985, 31.4170)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2E9A #4D9A2E
analogous
#452E9A #7B2E9A #9A2E83
triadic
#7B2E9A #9A7B2E #2E9A7B
tetradic
#7B2E9A #9A452E #4D9A2E #2E839A
square
#7B2E9A #9A452E #4D9A2E #2E839A
split-complementary
#7B2E9A #839A2E #2E9A45
monochromatic
#30123C #55206B #7B2E9A #9F3FC6 #B76FD4

Accessibility & contrast

On white

7.78
#7B2E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7B2E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2E9A
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2E9A#FFFFFF#000000##FFFFFF
##7B2E9A1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9D
Deuteranopia (green-blind)
#295498
Tritanopia (blue-blind)
#784460
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b2e9a;
/* rgb */ color: rgb(123, 46, 154);
/* oklch */ color: oklch(46.2% 0.175 314.5);
Tailwind
colors: {
  custom: {
    50: '#a56db8',
    500: '#7b2e9a',
    950: '#000000',
  },
}
SCSS
$custom: #7b2e9a;
$custom-light: #a56db8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2e9a",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 282.778,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.4617,
    "c": 0.17465,
    "h": 314.5
  },
  "luminance": 0.08498
}

Semantic roles & 50–950 ramp

primary
#7B2E9A
secondary
#80BB69
accent
#DD4A75
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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