#7D187E#7D187E

#7D187E is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.176 H 327.7°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#7D187E
RGBrgb(125, 24, 126)
HSLhsl(299, 68%, 29%)
HSVhsv(299, 81%, 49%)
CMYKcmyk(0.8%, 81%, 0%, 50.6%)
CIE-LABlab(30.69, 53.36, -33.82)
CIE-LCHlch(30.69, 63.17, 327.64°)
OKLaboklab(42.59% 0.1485 -0.0939)
OKLCHoklch(42.59% 0.176 327.7)
XYZxyz(12.5498, 6.5205, 20.3322)
Luminance0.0652 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D187E #197E18
analogous
#4A187E #7D187E #7E184C
triadic
#7D187E #7E7D18 #187E7D
tetradic
#7D187E #7E4A18 #197E18 #184C7E
square
#7D187E #7E4A18 #197E18 #184C7E
split-complementary
#7D187E #4C7E18 #187E4A
monochromatic
#1A051A #4A0E4B #7D187E #B022B1 #D737D9

Accessibility & contrast

On white

9.11
#7D187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7D187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D187E
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D187E#FFFFFF#000000##FFFFFF
##7D187E1.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#354D7C
Tritanopia (blue-blind)
#812A4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d187e;
/* rgb */ color: rgb(125, 24, 126);
/* oklch */ color: oklch(42.6% 0.176 327.7);
Tailwind
colors: {
  custom: {
    50: '#a663a4',
    500: '#7d187e',
    950: '#000000',
  },
}
SCSS
$custom: #7d187e;
$custom-light: #a663a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d187e",
  "rgb": {
    "r": 125,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 299.412,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42585,
    "c": 0.17565,
    "h": 327.7
  },
  "luminance": 0.0652
}

Semantic roles & 50–950 ramp

primary
#7D187E
secondary
#40B23F
accent
#EB3D3F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D187E

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

Preview Lab → · Contrast checker → · Palette generator →

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