#7E1874#7E1874

#7E1874 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.1% C 0.168 H 332.7°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#7E1874
RGBrgb(126, 24, 116)
HSLhsl(306, 68%, 29%)
HSVhsv(306, 81%, 49%)
CMYKcmyk(0%, 81%, 7.9%, 50.6%)
CIE-LABlab(30.28, 51.92, -28.13)
CIE-LCHlch(30.28, 59.05, 331.55°)
OKLaboklab(42.14% 0.1496 -0.0774)
OKLCHoklch(42.14% 0.168 332.7)
XYZxyz(12.0833, 6.3509, 17.1091)
Luminance0.0635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1874 #187E22
analogous
#55187E #7E1874 #7E1841
triadic
#7E1874 #747E18 #18747E
tetradic
#7E1874 #7E5518 #187E22 #18417E
square
#7E1874 #7E5518 #187E22 #18417E
split-complementary
#7E1874 #417E18 #187E55
monochromatic
#1A0518 #4B0E45 #7E1874 #B122A3 #D937C9

Accessibility & contrast

On white

9.25
#7E1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7E1874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1874
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1874#FFFFFF#000000##FFFFFF
##7E18741.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113E76
Deuteranopia (green-blind)
#3C4C72
Tritanopia (blue-blind)
#842446
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1874;
/* rgb */ color: rgb(126, 24, 116);
/* oklch */ color: oklch(42.1% 0.168 332.7);
Tailwind
colors: {
  custom: {
    50: '#a7629c',
    500: '#7e1874',
    950: '#000000',
  },
}
SCSS
$custom: #7e1874;
$custom-light: #a7629c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1874",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 305.882,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42138,
    "c": 0.16844,
    "h": 332.7
  },
  "luminance": 0.0635
}

Semantic roles & 50–950 ramp

primary
#7E1874
secondary
#3FB24B
accent
#EB4E3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1874

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

Preview Lab → · Contrast checker → · Palette generator →

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