#7B2F96#7B2F96

#7B2F96 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.169 H 315.9°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#7B2F96
RGBrgb(123, 47, 150)
HSLhsl(284, 52%, 39%)
HSVhsv(284, 69%, 59%)
CMYKcmyk(18%, 68.7%, 0%, 41.2%)
CIE-LABlab(34.90, 48.94, -41.96)
CIE-LCHlch(34.90, 64.47, 319.39°)
OKLaboklab(46.01% 0.1216 -0.1179)
OKLCHoklch(46.01% 0.169 315.9)
XYZxyz(14.6891, 8.4465, 29.7048)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2F96 #4A962F
analogous
#472F96 #7B2F96 #962F7D
triadic
#7B2F96 #967B2F #2F967B
tetradic
#7B2F96 #96472F #4A962F #2F7D96
square
#7B2F96 #96472F #4A962F #2F7D96
split-complementary
#7B2F96 #7D962F #2F9647
monochromatic
#2F1239 #552067 #7B2F96 #A03FC3 #B76ED2

Accessibility & contrast

On white

7.81
#7B2F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7B2F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2F96
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2F96#FFFFFF#000000##FFFFFF
##7B2F961.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E99
Deuteranopia (green-blind)
#2E5494
Tritanopia (blue-blind)
#79435F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7b2f96;
/* rgb */ color: rgb(123, 47, 150);
/* oklch */ color: oklch(46.0% 0.169 315.9);
Tailwind
colors: {
  custom: {
    50: '#a46eb5',
    500: '#7b2f96',
    950: '#000000',
  },
}
SCSS
$custom: #7b2f96;
$custom-light: #a46eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2f96",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 284.272,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46011,
    "c": 0.16939,
    "h": 315.9
  },
  "luminance": 0.08446
}

Semantic roles & 50–950 ramp

primary
#7B2F96
secondary
#7DB968
accent
#DC4C72
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2F96

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

Preview Lab → · Contrast checker → · Palette generator →

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