#7E1875#7E1875

#7E1875 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.169 H 332.2°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#7E1875
RGBrgb(126, 24, 117)
HSLhsl(305, 68%, 29%)
HSVhsv(305, 81%, 49%)
CMYKcmyk(0%, 81%, 7.1%, 50.6%)
CIE-LABlab(30.34, 52.08, -28.68)
CIE-LCHlch(30.34, 59.46, 331.16°)
OKLaboklab(42.2% 0.1497 -0.0789)
OKLCHoklch(42.2% 0.169 332.2)
XYZxyz(12.1417, 6.3743, 17.4171)
Luminance0.0637 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1875 #187E21
analogous
#54187E #7E1875 #7E1842
triadic
#7E1875 #757E18 #18757E
tetradic
#7E1875 #7E5418 #187E21 #18427E
square
#7E1875 #7E5418 #187E21 #18427E
split-complementary
#7E1875 #427E18 #187E54
monochromatic
#1A0518 #4B0E45 #7E1875 #B122A5 #D937CB

Accessibility & contrast

On white

9.23
#7E1875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1875
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1875#FFFFFF#000000##FFFFFF
##7E18751.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3E77
Deuteranopia (green-blind)
#3B4C73
Tritanopia (blue-blind)
#842546
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1875;
/* rgb */ color: rgb(126, 24, 117);
/* oklch */ color: oklch(42.2% 0.169 332.2);
Tailwind
colors: {
  custom: {
    50: '#a7639d',
    500: '#7e1875',
    950: '#000000',
  },
}
SCSS
$custom: #7e1875;
$custom-light: #a7639d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1875",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 305.294,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42197,
    "c": 0.16919,
    "h": 332.2
  },
  "luminance": 0.06373
}

Semantic roles & 50–950 ramp

primary
#7E1875
secondary
#3FB24A
accent
#EB4C3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1875

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

Preview Lab → · Contrast checker → · Palette generator →

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