#7B2E96#7B2E96

#7B2E96 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.9% C 0.171 H 316.0°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#7B2E96
RGBrgb(123, 46, 150)
HSLhsl(284, 53%, 38%)
HSVhsv(284, 69%, 59%)
CMYKcmyk(18%, 69.3%, 0%, 41.2%)
CIE-LABlab(34.74, 49.39, -42.22)
CIE-LCHlch(34.74, 64.97, 319.48°)
OKLaboklab(45.9% 0.1228 -0.1186)
OKLCHoklch(45.9% 0.171 316)
XYZxyz(14.6495, 8.3675, 29.6917)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2E96 #49962E
analogous
#472E96 #7B2E96 #962E7D
triadic
#7B2E96 #967B2E #2E967B
tetradic
#7B2E96 #96472E #49962E #2E7D96
square
#7B2E96 #96472E #49962E #2E7D96
split-complementary
#7B2E96 #7D962E #2E9647
monochromatic
#2E1138 #552067 #7B2E96 #A13EC4 #B86CD2

Accessibility & contrast

On white

7.86
#7B2E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2E96
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2E96#FFFFFF#000000##FFFFFF
##7B2E961.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b2e96;
/* rgb */ color: rgb(123, 46, 150);
/* oklch */ color: oklch(45.9% 0.171 316.0);
Tailwind
colors: {
  custom: {
    50: '#a46db5',
    500: '#7b2e96',
    950: '#000000',
  },
}
SCSS
$custom: #7b2e96;
$custom-light: #a46db5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2e96",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 150
  },
  "hsl": {
    "h": 284.423,
    "s": 53.061,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45897,
    "c": 0.17072,
    "h": 316
  },
  "luminance": 0.08367
}

Semantic roles & 50–950 ramp

primary
#7B2E96
secondary
#7CB967
accent
#DC4B71
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2E96

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

Preview Lab → · Contrast checker → · Palette generator →

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