#7B2E8B#7B2E8B

#7B2E8B is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.2% C 0.160 H 320.3°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#7B2E8B
RGBrgb(123, 46, 139)
HSLhsl(290, 50%, 36%)
HSVhsv(290, 67%, 55%)
CMYKcmyk(11.5%, 66.9%, 0%, 45.5%)
CIE-LABlab(34.04, 47.12, -36.58)
CIE-LCHlch(34.04, 59.65, 322.17°)
OKLaboklab(45.18% 0.1232 -0.1022)
OKLCHoklch(45.18% 0.16 320.3)
XYZxyz(13.8050, 8.0297, 25.2438)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2E8B #3E8B2E
analogous
#4D2E8B #7B2E8B #8B2E6D
triadic
#7B2E8B #8B7B2E #2E8B7B
tetradic
#7B2E8B #8B4D2E #3E8B2E #2E6D8B
square
#7B2E8B #8B4D2E #3E8B2E #2E6D8B
split-complementary
#7B2E8B #6D8B2E #2E8B4D
monochromatic
#2A102F #521F5D #7B2E8B #A43DB9 #BB67CD

Accessibility & contrast

On white

8.06
#7B2E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7B2E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2E8B
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2E8B#FFFFFF#000000##FFFFFF
##7B2E8B1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124B8E
Deuteranopia (green-blind)
#365389
Tritanopia (blue-blind)
#7C3E58
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7b2e8b;
/* rgb */ color: rgb(123, 46, 139);
/* oklch */ color: oklch(45.2% 0.160 320.3);
Tailwind
colors: {
  custom: {
    50: '#a46dad',
    500: '#7b2e8b',
    950: '#000000',
  },
}
SCSS
$custom: #7b2e8b;
$custom-light: #a46dad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2e8b",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 289.677,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45177,
    "c": 0.16002,
    "h": 320.3
  },
  "luminance": 0.08029
}

Semantic roles & 50–950 ramp

primary
#7B2E8B
secondary
#6FB361
accent
#DA4E66
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B2E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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