#7B2B8B#7B2B8B

#7B2B8B is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.8% C 0.164 H 320.5°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#7B2B8B
RGBrgb(123, 43, 139)
HSLhsl(290, 53%, 36%)
HSVhsv(290, 69%, 55%)
CMYKcmyk(11.5%, 69.1%, 0%, 45.5%)
CIE-LABlab(33.57, 48.44, -37.34)
CIE-LCHlch(33.57, 61.16, 322.38°)
OKLaboklab(44.84% 0.1267 -0.1043)
OKLCHoklch(44.84% 0.164 320.5)
XYZxyz(13.6919, 7.8035, 25.2061)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2B8B #3B8B2B
analogous
#4B2B8B #7B2B8B #8B2B6B
triadic
#7B2B8B #8B7B2B #2B8B7B
tetradic
#7B2B8B #8B4B2B #3B8B2B #2B6B8B
square
#7B2B8B #8B4B2B #3B8B2B #2B6B8B
split-complementary
#7B2B8B #6B8B2B #2B8B4B
monochromatic
#280E2E #521D5C #7B2B8B #A439BA #BC62CE

Accessibility & contrast

On white

8.20
#7B2B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7B2B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2B8B
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2B8B#FFFFFF#000000##FFFFFF
##7B2B8B1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09498E
Deuteranopia (green-blind)
#345289
Tritanopia (blue-blind)
#7C3C57
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b2b8b;
/* rgb */ color: rgb(123, 43, 139);
/* oklch */ color: oklch(44.8% 0.164 320.5);
Tailwind
colors: {
  custom: {
    50: '#a46bad',
    500: '#7b2b8b',
    950: '#000000',
  },
}
SCSS
$custom: #7b2b8b;
$custom-light: #a46bad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2b8b",
  "rgb": {
    "r": 123,
    "g": 43,
    "b": 139
  },
  "hsl": {
    "h": 290,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44836,
    "c": 0.16414,
    "h": 320.5
  },
  "luminance": 0.07803
}

Semantic roles & 50–950 ramp

primary
#7B2B8B
secondary
#6CB55D
accent
#DC4C64
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B2B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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