#7B2B87#7B2B87

#7B2B87 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.6% C 0.160 H 322.2°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#7B2B87
RGBrgb(123, 43, 135)
HSLhsl(292, 52%, 35%)
HSVhsv(292, 68%, 53%)
CMYKcmyk(8.9%, 68.1%, 0%, 47.1%)
CIE-LABlab(33.33, 47.65, -35.25)
CIE-LCHlch(33.33, 59.27, 323.50°)
OKLaboklab(44.58% 0.1268 -0.0983)
OKLCHoklch(44.58% 0.16 322.2)
XYZxyz(13.4050, 7.6887, 23.6950)
Luminance0.0769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2B87 #37872B
analogous
#4D2B87 #7B2B87 #872B65
triadic
#7B2B87 #877B2B #2B877B
tetradic
#7B2B87 #874D2B #37872B #2B6587
square
#7B2B87 #874D2B #37872B #2B6587
split-complementary
#7B2B87 #65872B #2B874D
monochromatic
#260D2A #511C59 #7B2B87 #A53AB5 #BE60CC

Accessibility & contrast

On white

8.28
#7B2B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7B2B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2B87
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2B87#FFFFFF#000000##FFFFFF
##7B2B871.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12498A
Deuteranopia (green-blind)
#375185
Tritanopia (blue-blind)
#7D3A55
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b2b87;
/* rgb */ color: rgb(123, 43, 135);
/* oklch */ color: oklch(44.6% 0.160 322.2);
Tailwind
colors: {
  custom: {
    50: '#a46baa',
    500: '#7b2b87',
    950: '#000000',
  },
}
SCSS
$custom: #7b2b87;
$custom-light: #a46baa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2b87",
  "rgb": {
    "r": 123,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 292.174,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44581,
    "c": 0.1604,
    "h": 322.2
  },
  "luminance": 0.07688
}

Semantic roles & 50–950 ramp

primary
#7B2B87
secondary
#67B25B
accent
#DB4D5F
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B2B87

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

Preview Lab → · Contrast checker → · Palette generator →

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