#7E198B#7E198B

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

Color values

HEX#7E198B
RGBrgb(126, 25, 139)
HSLhsl(293, 70%, 32%)
HSVhsv(293, 82%, 55%)
CMYKcmyk(9.4%, 82%, 0%, 45.5%)
CIE-LABlab(31.80, 55.57, -40.15)
CIE-LCHlch(31.80, 68.56, 324.15°)
OKLaboklab(43.67% 0.1478 -0.1123)
OKLCHoklch(43.67% 0.186 322.8)
XYZxyz(13.6116, 6.9958, 25.0545)
Luminance0.0699 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E198B #268B19
analogous
#45198B #7E198B #8B195F
triadic
#7E198B #8B7E19 #198B7E
tetradic
#7E198B #8B4519 #268B19 #195F8B
square
#7E198B #8B4519 #268B19 #195F8B
split-complementary
#7E198B #5F8B19 #198B45
monochromatic
#200623 #4F1057 #7E198B #AD22BF #CB41DD

Accessibility & contrast

On white

8.75
#7E198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E198B
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E198B#FFFFFF#000000##FFFFFF
##7E198B1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#2D4F88
Tritanopia (blue-blind)
#803153
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e198b;
/* rgb */ color: rgb(126, 25, 139);
/* oklch */ color: oklch(43.7% 0.186 322.8);
Tailwind
colors: {
  custom: {
    50: '#a764ad',
    500: '#7e198b',
    950: '#000000',
  },
}
SCSS
$custom: #7e198b;
$custom-light: #a764ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e198b",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 293.158,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.4367,
    "c": 0.18562,
    "h": 322.8
  },
  "luminance": 0.06995
}

Semantic roles & 50–950 ramp

primary
#7E198B
secondary
#50BE42
accent
#EC3B50
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E198B

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

Preview Lab → · Contrast checker → · Palette generator →

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