#7E2583#7E2583

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

Color values

HEX#7E2583
RGBrgb(126, 37, 131)
HSLhsl(297, 56%, 33%)
HSVhsv(297, 72%, 51%)
CMYKcmyk(3.8%, 71.8%, 0%, 48.6%)
CIE-LABlab(32.70, 50.09, -33.74)
CIE-LCHlch(32.70, 60.39, 326.03°)
OKLaboklab(44.15% 0.1372 -0.0937)
OKLCHoklch(44.15% 0.166 325.7)
XYZxyz(13.3622, 7.3983, 22.1925)
Luminance0.0740 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2583 #2A8325
analogous
#4F2583 #7E2583 #832559
triadic
#7E2583 #837E25 #25837E
tetradic
#7E2583 #834F25 #2A8325 #255983
square
#7E2583 #834F25 #2A8325 #255983
split-complementary
#7E2583 #598325 #25834F
monochromatic
#220A24 #501853 #7E2583 #AC32B3 #C854CF

Accessibility & contrast

On white

8.47
#7E2583 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7E2583 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2583
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2583#FFFFFF#000000##FFFFFF
##7E25831.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4686
Deuteranopia (green-blind)
#395181
Tritanopia (blue-blind)
#813451
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2583;
/* rgb */ color: rgb(126, 37, 131);
/* oklch */ color: oklch(44.1% 0.166 325.7);
Tailwind
colors: {
  custom: {
    50: '#a668a7',
    500: '#7e2583',
    950: '#000000',
  },
}
SCSS
$custom: #7e2583;
$custom-light: #a668a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2583",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 131
  },
  "hsl": {
    "h": 296.809,
    "s": 55.952,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44149,
    "c": 0.16615,
    "h": 325.7
  },
  "luminance": 0.07397
}

Semantic roles & 50–950 ramp

primary
#7E2583
secondary
#56B351
accent
#DF4951
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2583

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

Preview Lab → · Contrast checker → · Palette generator →

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