#7E2183#7E2183

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

Color values

HEX#7E2183
RGBrgb(126, 33, 131)
HSLhsl(297, 60%, 32%)
HSVhsv(297, 75%, 51%)
CMYKcmyk(3.8%, 74.8%, 0%, 48.6%)
CIE-LABlab(32.17, 51.57, -34.57)
CIE-LCHlch(32.17, 62.09, 326.16°)
OKLaboklab(43.78% 0.1413 -0.0961)
OKLCHoklch(43.78% 0.171 325.8)
XYZxyz(13.2445, 7.1629, 22.1533)
Luminance0.0716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2183 #268321
analogous
#4D2183 #7E2183 #832157
triadic
#7E2183 #837E21 #21837E
tetradic
#7E2183 #834D21 #268321 #215783
square
#7E2183 #834D21 #268321 #215783
split-complementary
#7E2183 #578321 #21834D
monochromatic
#200821 #4F1552 #7E2183 #AD2DB4 #CB4CD2

Accessibility & contrast

On white

8.63
#7E2183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2183
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2183#FFFFFF#000000##FFFFFF
##7E21831.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2183;
/* rgb */ color: rgb(126, 33, 131);
/* oklch */ color: oklch(43.8% 0.171 325.8);
Tailwind
colors: {
  custom: {
    50: '#a767a7',
    500: '#7e2183',
    950: '#000000',
  },
}
SCSS
$custom: #7e2183;
$custom-light: #a767a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2183",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 296.939,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43775,
    "c": 0.17091,
    "h": 325.8
  },
  "luminance": 0.07162
}

Semantic roles & 50–950 ramp

primary
#7E2183
secondary
#50B54B
accent
#E3454D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E2183

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

Preview Lab → · Contrast checker → · Palette generator →

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