#7D1870#7D1870

#7D1870 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.7% C 0.165 H 334.1°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#7D1870
RGBrgb(125, 24, 112)
HSLhsl(308, 68%, 29%)
HSVhsv(308, 81%, 49%)
CMYKcmyk(0%, 80.8%, 10.4%, 51%)
CIE-LABlab(29.87, 51.06, -26.24)
CIE-LCHlch(29.87, 57.41, 332.81°)
OKLaboklab(41.74% 0.1484 -0.0719)
OKLCHoklch(41.74% 0.165 334.1)
XYZxyz(11.7088, 6.1841, 15.9031)
Luminance0.0618 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1870 #187D25
analogous
#58187D #7D1870 #7D183E
triadic
#7D1870 #707D18 #18707D
tetradic
#7D1870 #7D5818 #187D25 #183E7D
square
#7D1870 #7D5818 #187D25 #183E7D
split-complementary
#7D1870 #3E7D18 #187D58
monochromatic
#1A0517 #4A0E42 #7D1870 #B0229E #D937C4

Accessibility & contrast

On white

9.39
#7D1870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7D1870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1870
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1870#FFFFFF#000000##FFFFFF
##7D18701.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153D72
Deuteranopia (green-blind)
#3D4B6E
Tritanopia (blue-blind)
#832243
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7d1870;
/* rgb */ color: rgb(125, 24, 112);
/* oklch */ color: oklch(41.7% 0.165 334.1);
Tailwind
colors: {
  custom: {
    50: '#a66299',
    500: '#7d1870',
    950: '#000000',
  },
}
SCSS
$custom: #7d1870;
$custom-light: #a66299;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1870",
  "rgb": {
    "r": 125,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 307.723,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41738,
    "c": 0.16493,
    "h": 334.1
  },
  "luminance": 0.06183
}

Semantic roles & 50–950 ramp

primary
#7D1870
secondary
#3FB24E
accent
#EB533D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1870

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

Preview Lab → · Contrast checker → · Palette generator →

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