#7B287D#7B287D

#7B287D is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.6% C 0.155 H 326.9°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#7B287D
RGBrgb(123, 40, 125)
HSLhsl(299, 52%, 32%)
HSVhsv(299, 68%, 49%)
CMYKcmyk(1.6%, 68%, 0%, 51%)
CIE-LABlab(32.28, 47.03, -30.68)
CIE-LCHlch(32.28, 56.16, 326.88°)
OKLaboklab(43.64% 0.1301 -0.085)
OKLCHoklch(43.64% 0.155 326.9)
XYZxyz(12.6286, 7.2100, 20.1246)
Luminance0.0721 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B287D #2A7D28
analogous
#50287D #7B287D #7D2855
triadic
#7B287D #7D7B28 #287D7B
tetradic
#7B287D #7D5028 #2A7D28 #28557D
square
#7B287D #7D5028 #2A7D28 #28557D
split-complementary
#7B287D #557D28 #287D50
monochromatic
#200A20 #4D194F #7B287D #A937AB #C656C9

Accessibility & contrast

On white

8.60
#7B287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7B287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B287D
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B287D#FFFFFF#000000##FFFFFF
##7B287D1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A457F
Deuteranopia (green-blind)
#3B507B
Tritanopia (blue-blind)
#7E344F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b287d;
/* rgb */ color: rgb(123, 40, 125);
/* oklch */ color: oklch(43.6% 0.155 326.9);
Tailwind
colors: {
  custom: {
    50: '#a469a3',
    500: '#7b287d',
    950: '#000000',
  },
}
SCSS
$custom: #7b287d;
$custom-light: #a469a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b287d",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 298.588,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43638,
    "c": 0.15543,
    "h": 326.9
  },
  "luminance": 0.07209
}

Semantic roles & 50–950 ramp

primary
#7B287D
secondary
#55AE53
accent
#DB4D50
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7B287D

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

Preview Lab → · Contrast checker → · Palette generator →

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