#7B2D8B#7B2D8B

#7B2D8B is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.1% C 0.161 H 320.4°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#7B2D8B
RGBrgb(123, 45, 139)
HSLhsl(290, 51%, 36%)
HSVhsv(290, 68%, 55%)
CMYKcmyk(11.5%, 67.6%, 0%, 45.5%)
CIE-LABlab(33.88, 47.57, -36.84)
CIE-LCHlch(33.88, 60.16, 322.24°)
OKLaboklab(45.06% 0.1244 -0.1029)
OKLCHoklch(45.06% 0.161 320.4)
XYZxyz(13.7664, 7.9525, 25.2309)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2D8B #3D8B2D
analogous
#4C2D8B #7B2D8B #8B2D6C
triadic
#7B2D8B #8B7B2D #2D8B7B
tetradic
#7B2D8B #8B4C2D #3D8B2D #2D6C8B
square
#7B2D8B #8B4C2D #3D8B2D #2D6C8B
split-complementary
#7B2D8B #6C8B2D #2D8B4C
monochromatic
#290F2F #521E5D #7B2D8B #A43CB9 #BC65CD

Accessibility & contrast

On white

8.11
#7B2D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7B2D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2D8B
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2D8B#FFFFFF#000000##FFFFFF
##7B2D8B1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4A8E
Deuteranopia (green-blind)
#365289
Tritanopia (blue-blind)
#7C3D58
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7b2d8b;
/* rgb */ color: rgb(123, 45, 139);
/* oklch */ color: oklch(45.1% 0.161 320.4);
Tailwind
colors: {
  custom: {
    50: '#a46cad',
    500: '#7b2d8b',
    950: '#000000',
  },
}
SCSS
$custom: #7b2d8b;
$custom-light: #a46cad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2d8b",
  "rgb": {
    "r": 123,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 289.787,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45061,
    "c": 0.16142,
    "h": 320.4
  },
  "luminance": 0.07952
}

Semantic roles & 50–950 ramp

primary
#7B2D8B
secondary
#6EB460
accent
#DB4D65
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B2D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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