#7B2687#7B2687

#7B2687 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.0% C 0.167 H 322.5°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#7B2687
RGBrgb(123, 38, 135)
HSLhsl(293, 56%, 34%)
HSVhsv(293, 72%, 53%)
CMYKcmyk(8.9%, 71.9%, 0%, 47.1%)
CIE-LABlab(32.58, 49.74, -36.44)
CIE-LCHlch(32.58, 61.65, 323.77°)
OKLaboklab(44.05% 0.1324 -0.1017)
OKLCHoklch(44.05% 0.167 322.5)
XYZxyz(13.2342, 7.3472, 23.6380)
Luminance0.0735 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2687 #328726
analogous
#4B2687 #7B2687 #872663
triadic
#7B2687 #877B26 #26877B
tetradic
#7B2687 #874B26 #328726 #266387
square
#7B2687 #874B26 #328726 #266387
split-complementary
#7B2687 #638726 #26874B
monochromatic
#240B27 #4F1957 #7B2687 #A733B7 #C158D0

Accessibility & contrast

On white

8.50
#7B2687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7B2687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2687
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2687#FFFFFF#000000##FFFFFF
##7B26871.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03468A
Deuteranopia (green-blind)
#345085
Tritanopia (blue-blind)
#7D3754
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b2687;
/* rgb */ color: rgb(123, 38, 135);
/* oklch */ color: oklch(44.0% 0.167 322.5);
Tailwind
colors: {
  custom: {
    50: '#a469aa',
    500: '#7b2687',
    950: '#000000',
  },
}
SCSS
$custom: #7b2687;
$custom-light: #a469aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2687",
  "rgb": {
    "r": 123,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 292.577,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44049,
    "c": 0.16695,
    "h": 322.5
  },
  "luminance": 0.07346
}

Semantic roles & 50–950 ramp

primary
#7B2687
secondary
#60B554
accent
#DF485B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B2687

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

Preview Lab → · Contrast checker → · Palette generator →

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