#7E2283#7E2283

#7E2283 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.9% C 0.170 H 325.8°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#7E2283
RGBrgb(126, 34, 131)
HSLhsl(297, 59%, 32%)
HSVhsv(297, 74%, 51%)
CMYKcmyk(3.8%, 74%, 0%, 48.6%)
CIE-LABlab(32.30, 51.21, -34.37)
CIE-LCHlch(32.30, 61.68, 326.13°)
OKLaboklab(43.86% 0.1403 -0.0955)
OKLCHoklch(43.86% 0.17 325.8)
XYZxyz(13.2727, 7.2192, 22.1627)
Luminance0.0722 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2283 #278322
analogous
#4D2283 #7E2283 #832258
triadic
#7E2283 #837E22 #22837E
tetradic
#7E2283 #834D22 #278322 #225883
square
#7E2283 #834D22 #278322 #225883
split-complementary
#7E2283 #588322 #22834D
monochromatic
#210922 #4F1552 #7E2283 #AD2FB4 #CA4ED1

Accessibility & contrast

On white

8.59
#7E2283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2283
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2283#FFFFFF#000000##FFFFFF
##7E22831.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074586
Deuteranopia (green-blind)
#375081
Tritanopia (blue-blind)
#813250
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e2283;
/* rgb */ color: rgb(126, 34, 131);
/* oklch */ color: oklch(43.9% 0.170 325.8);
Tailwind
colors: {
  custom: {
    50: '#a767a7',
    500: '#7e2283',
    950: '#000000',
  },
}
SCSS
$custom: #7e2283;
$custom-light: #a767a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2283",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 131
  },
  "hsl": {
    "h": 296.907,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43865,
    "c": 0.16976,
    "h": 325.8
  },
  "luminance": 0.07218
}

Semantic roles & 50–950 ramp

primary
#7E2283
secondary
#52B44C
accent
#E2464E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E2283

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

Preview Lab → · Contrast checker → · Palette generator →

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