#7E2280#7E2280

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

Color values

HEX#7E2280
RGBrgb(126, 34, 128)
HSLhsl(299, 58%, 32%)
HSVhsv(299, 73%, 50%)
CMYKcmyk(1.6%, 73.4%, 0%, 49.8%)
CIE-LABlab(32.12, 50.67, -32.78)
CIE-LCHlch(32.12, 60.35, 327.10°)
OKLaboklab(43.68% 0.1404 -0.0909)
OKLCHoklch(43.68% 0.167 327.1)
XYZxyz(13.0723, 7.1391, 21.1074)
Luminance0.0714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2280 #248022
analogous
#4F2280 #7E2280 #802253
triadic
#7E2280 #807E22 #22807E
tetradic
#7E2280 #804F22 #248022 #225380
square
#7E2280 #804F22 #248022 #225380
split-complementary
#7E2280 #538022 #22804F
monochromatic
#1F081F #4E1550 #7E2280 #AE2FB0 #CD4DD0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E2280#FFFFFF#000000##FFFFFF
##7E22801.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)
#0E4483
Deuteranopia (green-blind)
#39507E
Tritanopia (blue-blind)
#82314F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e2280;
/* rgb */ color: rgb(126, 34, 128);
/* oklch */ color: oklch(43.7% 0.167 327.1);
Tailwind
colors: {
  custom: {
    50: '#a767a5',
    500: '#7e2280',
    950: '#000000',
  },
}
SCSS
$custom: #7e2280;
$custom-light: #a767a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2280",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 128
  },
  "hsl": {
    "h": 298.723,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43679,
    "c": 0.16723,
    "h": 327.1
  },
  "luminance": 0.07138
}

Semantic roles & 50–950 ramp

primary
#7E2280
secondary
#4EB24B
accent
#E1474A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E2280

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

Preview Lab → · Contrast checker → · Palette generator →

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