#7A187B#7A187B

#7A187B is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.172 H 327.7°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#7A187B
RGBrgb(122, 24, 123)
HSLhsl(299, 67%, 29%)
HSVhsv(299, 80%, 48%)
CMYKcmyk(0.8%, 80.5%, 0%, 51.8%)
CIE-LABlab(29.97, 52.20, -33.11)
CIE-LCHlch(29.97, 61.82, 327.61°)
OKLaboklab(41.91% 0.1452 -0.0919)
OKLCHoklch(41.91% 0.172 327.7)
XYZxyz(11.9277, 6.2218, 19.3078)
Luminance0.0622 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A187B #197B18
analogous
#49187B #7A187B #7B184B
triadic
#7A187B #7B7A18 #187B7A
tetradic
#7A187B #7B4918 #197B18 #184B7B
square
#7A187B #7B4918 #197B18 #184B7B
split-complementary
#7A187B #4B7B18 #187B49
monochromatic
#19051A #470E48 #7A187B #AD22AE #D636D8

Accessibility & contrast

On white

9.36
#7A187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A187B
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A187B#FFFFFF#000000##FFFFFF
##7A187B1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#344B79
Tritanopia (blue-blind)
#7E2949
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7a187b;
/* rgb */ color: rgb(122, 24, 123);
/* oklch */ color: oklch(41.9% 0.172 327.7);
Tailwind
colors: {
  custom: {
    50: '#a462a1',
    500: '#7a187b',
    950: '#000000',
  },
}
SCSS
$custom: #7a187b;
$custom-light: #a462a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a187b",
  "rgb": {
    "r": 122,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 299.394,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41908,
    "c": 0.17186,
    "h": 327.7
  },
  "luminance": 0.06221
}

Semantic roles & 50–950 ramp

primary
#7A187B
secondary
#40B03F
accent
#EA3E3F
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A187B

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

Preview Lab → · Contrast checker → · Palette generator →

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