#7B2496#7B2496

#7B2496 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.183 H 316.7°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#7B2496
RGBrgb(123, 36, 150)
HSLhsl(286, 61%, 36%)
HSVhsv(286, 76%, 59%)
CMYKcmyk(18%, 76%, 0%, 41.2%)
CIE-LABlab(33.30, 53.46, -44.53)
CIE-LCHlch(33.30, 69.58, 320.21°)
OKLaboklab(44.87% 0.1332 -0.1254)
OKLCHoklch(44.87% 0.183 316.7)
XYZxyz(14.3034, 7.6753, 29.5763)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2496 #3F9624
analogous
#422496 #7B2496 #962478
triadic
#7B2496 #967B24 #24967B
tetradic
#7B2496 #964224 #3F9624 #247896
square
#7B2496 #964224 #3F9624 #247896
split-complementary
#7B2496 #789624 #249642
monochromatic
#2A0C33 #531865 #7B2496 #A330C7 #BB5CD8

Accessibility & contrast

On white

8.28
#7B2496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7B2496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2496
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2496#FFFFFF#000000##FFFFFF
##7B24961.008.282.538.28
#FFFFFF8.281.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#255193
Tritanopia (blue-blind)
#793C5C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b2496;
/* rgb */ color: rgb(123, 36, 150);
/* oklch */ color: oklch(44.9% 0.183 316.7);
Tailwind
colors: {
  custom: {
    50: '#a568b5',
    500: '#7b2496',
    950: '#000000',
  },
}
SCSS
$custom: #7b2496;
$custom-light: #a568b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2496",
  "rgb": {
    "r": 123,
    "g": 36,
    "b": 150
  },
  "hsl": {
    "h": 285.789,
    "s": 61.29,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44871,
    "c": 0.18291,
    "h": 316.7
  },
  "luminance": 0.07675
}

Semantic roles & 50–950 ramp

primary
#7B2496
secondary
#71BD59
accent
#E4436A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2496

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

Preview Lab → · Contrast checker → · Palette generator →

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