#7E1895#7E1895

#7E1895 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.3% C 0.195 H 319.0°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#7E1895
RGBrgb(126, 24, 149)
HSLhsl(289, 72%, 34%)
HSVhsv(289, 84%, 58%)
CMYKcmyk(15.4%, 83.9%, 0%, 41.6%)
CIE-LABlab(32.39, 57.69, -45.36)
CIE-LCHlch(32.39, 73.39, 321.83°)
OKLaboklab(44.31% 0.147 -0.1276)
OKLCHoklch(44.31% 0.195 319)
XYZxyz(14.3549, 7.2595, 29.0730)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1895 #2F9518
analogous
#401895 #7E1895 #95186E
triadic
#7E1895 #957E18 #18957E
tetradic
#7E1895 #954018 #2F9518 #186E95
square
#7E1895 #954018 #2F9518 #186E95
split-complementary
#7E1895 #6E9518 #189540
monochromatic
#25072C #511060 #7E1895 #AB20CA #C546E1

Accessibility & contrast

On white

8.57
#7E1895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7E1895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1895
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1895#FFFFFF#000000##FFFFFF
##7E18951.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#224F92
Tritanopia (blue-blind)
#7E3658
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e1895;
/* rgb */ color: rgb(126, 24, 149);
/* oklch */ color: oklch(44.3% 0.195 319.0);
Tailwind
colors: {
  custom: {
    50: '#a864b5',
    500: '#7e1895',
    950: '#000000',
  },
}
SCSS
$custom: #7e1895;
$custom-light: #a864b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1895",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 288.96,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44307,
    "c": 0.19469,
    "h": 319
  },
  "luminance": 0.07259
}

Semantic roles & 50–950 ramp

primary
#7E1895
secondary
#5DC246
accent
#EF395A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7E1895

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

Preview Lab → · Contrast checker → · Palette generator →

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