#7E198C#7E198C

#7E198C is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.7% C 0.186 H 322.4°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#7E198C
RGBrgb(126, 25, 140)
HSLhsl(293, 70%, 32%)
HSVhsv(293, 82%, 55%)
CMYKcmyk(10%, 82.1%, 0%, 45.1%)
CIE-LABlab(31.86, 55.75, -40.66)
CIE-LCHlch(31.86, 69.00, 323.90°)
OKLaboklab(43.74% 0.1476 -0.1138)
OKLCHoklch(43.74% 0.186 322.4)
XYZxyz(13.6850, 7.0251, 25.4410)
Luminance0.0702 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E198C #278C19
analogous
#45198C #7E198C #8C1960
triadic
#7E198C #8C7E19 #198C7E
tetradic
#7E198C #8C4519 #278C19 #19608C
square
#7E198C #8C4519 #278C19 #19608C
split-complementary
#7E198C #608C19 #198C45
monochromatic
#210624 #4F1058 #7E198C #AD22C0 #CA42DD

Accessibility & contrast

On white

8.73
#7E198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7E198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E198C
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E198C#FFFFFF#000000##FFFFFF
##7E198C1.008.732.408.73
#FFFFFF8.731.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448F
Deuteranopia (green-blind)
#2C4F89
Tritanopia (blue-blind)
#803253
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e198c;
/* rgb */ color: rgb(126, 25, 140);
/* oklch */ color: oklch(43.7% 0.186 322.4);
Tailwind
colors: {
  custom: {
    50: '#a764ae',
    500: '#7e198c',
    950: '#000000',
  },
}
SCSS
$custom: #7e198c;
$custom-light: #a764ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7e198c",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 292.696,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43739,
    "c": 0.18644,
    "h": 322.4
  },
  "luminance": 0.07024
}

Semantic roles & 50–950 ramp

primary
#7E198C
secondary
#52BE43
accent
#ED3B51
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E198C

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

Preview Lab → · Contrast checker → · Palette generator →

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