#7D1874#7D1874

#7D1874 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.168 H 332.2°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#7D1874
RGBrgb(125, 24, 116)
HSLhsl(305, 68%, 29%)
HSVhsv(305, 81%, 49%)
CMYKcmyk(0%, 80.8%, 7.2%, 51%)
CIE-LABlab(30.10, 51.70, -28.43)
CIE-LCHlch(30.10, 59.00, 331.19°)
OKLaboklab(41.97% 0.1486 -0.0783)
OKLCHoklch(41.97% 0.168 332.2)
XYZxyz(11.9365, 6.2752, 17.1022)
Luminance0.0627 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1874 #187D21
analogous
#54187D #7D1874 #7D1841
triadic
#7D1874 #747D18 #18747D
tetradic
#7D1874 #7D5418 #187D21 #18417D
square
#7D1874 #7D5418 #187D21 #18417D
split-complementary
#7D1874 #417D18 #187D54
monochromatic
#1A0518 #4A0E44 #7D1874 #B022A4 #D937CA

Accessibility & contrast

On white

9.31
#7D1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7D1874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1874
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1874#FFFFFF#000000##FFFFFF
##7D18741.009.312.259.31
#FFFFFF9.311.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103E76
Deuteranopia (green-blind)
#3B4C72
Tritanopia (blue-blind)
#832545
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7d1874;
/* rgb */ color: rgb(125, 24, 116);
/* oklch */ color: oklch(42.0% 0.168 332.2);
Tailwind
colors: {
  custom: {
    50: '#a6629c',
    500: '#7d1874',
    950: '#000000',
  },
}
SCSS
$custom: #7d1874;
$custom-light: #a6629c;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1874",
  "rgb": {
    "r": 125,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 305.347,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41971,
    "c": 0.16793,
    "h": 332.2
  },
  "luminance": 0.06274
}

Semantic roles & 50–950 ramp

primary
#7D1874
secondary
#3FB249
accent
#EB4D3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1874

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

Preview Lab → · Contrast checker → · Palette generator →

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