#7E2286#7E2286

#7E2286 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.172 H 324.5°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#7E2286
RGBrgb(126, 34, 134)
HSLhsl(295, 60%, 33%)
HSVhsv(295, 75%, 53%)
CMYKcmyk(6%, 74.6%, 0%, 47.5%)
CIE-LABlab(32.48, 51.76, -35.95)
CIE-LCHlch(32.48, 63.01, 325.22°)
OKLaboklab(44.06% 0.1402 -0.1001)
OKLCHoklch(44.06% 0.172 324.5)
XYZxyz(13.4789, 7.3018, 23.2491)
Luminance0.0730 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2286 #2A8622
analogous
#4C2286 #7E2286 #86225C
triadic
#7E2286 #867E22 #22867E
tetradic
#7E2286 #864C22 #2A8622 #225C86
square
#7E2286 #864C22 #2A8622 #225C86
split-complementary
#7E2286 #5C8622 #22864C
monochromatic
#220924 #501655 #7E2286 #AC2EB7 #C850D3

Accessibility & contrast

On white

8.54
#7E2286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7E2286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2286
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2286#FFFFFF#000000##FFFFFF
##7E22861.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004589
Deuteranopia (green-blind)
#355084
Tritanopia (blue-blind)
#813352
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e2286;
/* rgb */ color: rgb(126, 34, 134);
/* oklch */ color: oklch(44.1% 0.172 324.5);
Tailwind
colors: {
  custom: {
    50: '#a767aa',
    500: '#7e2286',
    950: '#000000',
  },
}
SCSS
$custom: #7e2286;
$custom-light: #a767aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2286",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 295.2,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44055,
    "c": 0.17232,
    "h": 324.5
  },
  "luminance": 0.07301
}

Semantic roles & 50–950 ramp

primary
#7E2286
secondary
#56B64E
accent
#E34552
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2286

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

Preview Lab → · Contrast checker → · Palette generator →

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