#7A287D#7A287D

#7A287D is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.5% C 0.155 H 326.4°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#7A287D
RGBrgb(122, 40, 125)
HSLhsl(298, 52%, 32%)
HSVhsv(298, 68%, 49%)
CMYKcmyk(2.4%, 68%, 0%, 51%)
CIE-LABlab(32.12, 46.78, -30.95)
CIE-LCHlch(32.12, 56.09, 326.51°)
OKLaboklab(43.49% 0.129 -0.0858)
OKLCHoklch(43.49% 0.155 326.4)
XYZxyz(12.4863, 7.1366, 20.1179)
Luminance0.0714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A287D #2B7D28
analogous
#4F287D #7A287D #7D2856
triadic
#7A287D #7D7A28 #287D7A
tetradic
#7A287D #7D4F28 #2B7D28 #28567D
square
#7A287D #7D4F28 #2B7D28 #28567D
split-complementary
#7A287D #567D28 #287D4F
monochromatic
#1F0A20 #4D194F #7A287D #A737AB #C556C9

Accessibility & contrast

On white

8.65
#7A287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7A287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A287D
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A287D#FFFFFF#000000##FFFFFF
##7A287D1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19457F
Deuteranopia (green-blind)
#3A4F7B
Tritanopia (blue-blind)
#7D344F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7a287d;
/* rgb */ color: rgb(122, 40, 125);
/* oklch */ color: oklch(43.5% 0.155 326.4);
Tailwind
colors: {
  custom: {
    50: '#a369a3',
    500: '#7a287d',
    950: '#000000',
  },
}
SCSS
$custom: #7a287d;
$custom-light: #a369a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a287d",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 297.882,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43487,
    "c": 0.15488,
    "h": 326.4
  },
  "luminance": 0.07136
}

Semantic roles & 50–950 ramp

primary
#7A287D
secondary
#56AE53
accent
#DB4D52
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F070F
muted
#7F7A7F

Preview Lab

Preview with #7A287D

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

Preview Lab → · Contrast checker → · Palette generator →

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