#7E197B#7E197B

#7E197B is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.6% C 0.173 H 329.4°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#7E197B
RGBrgb(126, 25, 123)
HSLhsl(302, 67%, 30%)
HSVhsv(302, 80%, 49%)
CMYKcmyk(0%, 80.2%, 2.4%, 50.6%)
CIE-LABlab(30.79, 52.78, -31.76)
CIE-LCHlch(30.79, 61.60, 328.96°)
OKLaboklab(42.63% 0.1488 -0.0879)
OKLCHoklch(42.63% 0.173 329.4)
XYZxyz(12.5269, 6.5619, 19.3419)
Luminance0.0656 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E197B #197E1C
analogous
#4F197E #7E197B #7E1949
triadic
#7E197B #7B7E19 #197B7E
tetradic
#7E197B #7E4F19 #197E1C #19497E
square
#7E197B #7E4F19 #197E1C #19497E
split-complementary
#7E197B #497E19 #197E4F
monochromatic
#1A0519 #4B0F49 #7E197B #B123AD #D83AD3

Accessibility & contrast

On white

9.08
#7E197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7E197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E197B
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E197B#FFFFFF#000000##FFFFFF
##7E197B1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05407E
Deuteranopia (green-blind)
#384D79
Tritanopia (blue-blind)
#83294A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e197b;
/* rgb */ color: rgb(126, 25, 123);
/* oklch */ color: oklch(42.6% 0.173 329.4);
Tailwind
colors: {
  custom: {
    50: '#a763a1',
    500: '#7e197b',
    950: '#000000',
  },
}
SCSS
$custom: #7e197b;
$custom-light: #a763a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e197b",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 301.782,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42631,
    "c": 0.17284,
    "h": 329.4
  },
  "luminance": 0.06561
}

Semantic roles & 50–950 ramp

primary
#7E197B
secondary
#41B244
accent
#EA433E
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E197B

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

Preview Lab → · Contrast checker → · Palette generator →

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