#7B2D96#7B2D96

#7B2D96 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.172 H 316.1°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#7B2D96
RGBrgb(123, 45, 150)
HSLhsl(285, 54%, 38%)
HSVhsv(285, 70%, 59%)
CMYKcmyk(18%, 70%, 0%, 41.2%)
CIE-LABlab(34.58, 49.83, -42.47)
CIE-LCHlch(34.58, 65.47, 319.56°)
OKLaboklab(45.79% 0.1239 -0.1194)
OKLCHoklch(45.79% 0.172 316.1)
XYZxyz(14.6109, 8.2903, 29.6788)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2D96 #48962D
analogous
#462D96 #7B2D96 #962D7C
triadic
#7B2D96 #967B2D #2D967B
tetradic
#7B2D96 #96462D #48962D #2D7C96
square
#7B2D96 #96462D #48962D #2D7C96
split-complementary
#7B2D96 #7C962D #2D9646
monochromatic
#2E1138 #541F67 #7B2D96 #A13CC4 #B86BD3

Accessibility & contrast

On white

7.90
#7B2D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7B2D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2D96
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2D96#FFFFFF#000000##FFFFFF
##7B2D961.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D99
Deuteranopia (green-blind)
#2D5494
Tritanopia (blue-blind)
#79425E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b2d96;
/* rgb */ color: rgb(123, 45, 150);
/* oklch */ color: oklch(45.8% 0.172 316.1);
Tailwind
colors: {
  custom: {
    50: '#a56db5',
    500: '#7b2d96',
    950: '#000000',
  },
}
SCSS
$custom: #7b2d96;
$custom-light: #a56db5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2d96",
  "rgb": {
    "r": 123,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 284.571,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45785,
    "c": 0.17204,
    "h": 316.1
  },
  "luminance": 0.0829
}

Semantic roles & 50–950 ramp

primary
#7B2D96
secondary
#7BB965
accent
#DD4B70
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2D96

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

Preview Lab → · Contrast checker → · Palette generator →

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