#7E287D#7E287D

#7E287D is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.1% C 0.157 H 328.3°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#7E287D
RGBrgb(126, 40, 125)
HSLhsl(301, 52%, 33%)
HSVhsv(301, 68%, 49%)
CMYKcmyk(0%, 68.3%, 0.8%, 50.6%)
CIE-LABlab(32.78, 47.80, -29.87)
CIE-LCHlch(32.78, 56.36, 328.00°)
OKLaboklab(44.1% 0.1337 -0.0825)
OKLCHoklch(44.1% 0.157 328.3)
XYZxyz(13.0645, 7.4348, 20.1450)
Luminance0.0743 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E287D #287E29
analogous
#54287E #7E287D #7E2852
triadic
#7E287D #7D7E28 #287D7E
tetradic
#7E287D #7E5428 #287E29 #28527E
square
#7E287D #7E5428 #287E29 #28527E
split-complementary
#7E287D #527E28 #287E54
monochromatic
#210B21 #50194F #7E287D #AC37AB #CA57C8

Accessibility & contrast

On white

8.44
#7E287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7E287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E287D
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E287D#FFFFFF#000000##FFFFFF
##7E287D1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D467F
Deuteranopia (green-blind)
#3E517B
Tritanopia (blue-blind)
#82334F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e287d;
/* rgb */ color: rgb(126, 40, 125);
/* oklch */ color: oklch(44.1% 0.157 328.3);
Tailwind
colors: {
  custom: {
    50: '#a66aa3',
    500: '#7e287d',
    950: '#000000',
  },
}
SCSS
$custom: #7e287d;
$custom-light: #a66aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e287d",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 300.698,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44095,
    "c": 0.15709,
    "h": 328.3
  },
  "luminance": 0.07434
}

Semantic roles & 50–950 ramp

primary
#7E287D
secondary
#53AF54
accent
#DB4E4D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E287D

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

Preview Lab → · Contrast checker → · Palette generator →

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