#7B2B8D#7B2B8D

#7B2B8D is a dark, vivid purple. Relative luminance 0.079; OKLCH L 45.0% C 0.166 H 319.7°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#7B2B8D
RGBrgb(123, 43, 141)
HSLhsl(289, 53%, 36%)
HSVhsv(289, 70%, 55%)
CMYKcmyk(12.8%, 69.5%, 0%, 44.7%)
CIE-LABlab(33.69, 48.84, -38.37)
CIE-LCHlch(33.69, 62.11, 321.85°)
OKLaboklab(44.97% 0.1266 -0.1074)
OKLCHoklch(44.97% 0.166 319.7)
XYZxyz(13.8394, 7.8625, 25.9828)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2B8D #3D8D2B
analogous
#4A2B8D #7B2B8D #8D2B6E
triadic
#7B2B8D #8D7B2B #2B8D7B
tetradic
#7B2B8D #8D4A2B #3D8D2B #2B6E8D
square
#7B2B8D #8D4A2B #3D8D2B #2B6E8D
split-complementary
#7B2B8D #6E8D2B #2B8D4A
monochromatic
#290E2F #521D5E #7B2B8D #A439BC #BC63CF

Accessibility & contrast

On white

8.16
#7B2B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7B2B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2B8D
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2B8D#FFFFFF#000000##FFFFFF
##7B2B8D1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034A90
Deuteranopia (green-blind)
#33528B
Tritanopia (blue-blind)
#7B3D58
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b2b8d;
/* rgb */ color: rgb(123, 43, 141);
/* oklch */ color: oklch(45.0% 0.166 319.7);
Tailwind
colors: {
  custom: {
    50: '#a46baf',
    500: '#7b2b8d',
    950: '#000000',
  },
}
SCSS
$custom: #7b2b8d;
$custom-light: #a46baf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2b8d",
  "rgb": {
    "r": 123,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 288.98,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44965,
    "c": 0.16603,
    "h": 319.7
  },
  "luminance": 0.07862
}

Semantic roles & 50–950 ramp

primary
#7B2B8D
secondary
#6EB65E
accent
#DD4B66
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B2B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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