#7A187F#7A187F

#7A187F is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.2% C 0.175 H 325.9°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#7A187F
RGBrgb(122, 24, 127)
HSLhsl(297, 68%, 30%)
HSVhsv(297, 81%, 50%)
CMYKcmyk(3.9%, 81.1%, 0%, 50.2%)
CIE-LABlab(30.22, 52.90, -35.23)
CIE-LCHlch(30.22, 63.56, 326.33°)
OKLaboklab(42.17% 0.145 -0.0981)
OKLCHoklch(42.17% 0.175 325.9)
XYZxyz(12.1832, 6.3240, 20.6535)
Luminance0.0632 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A187F #1D7F18
analogous
#46187F #7A187F #7F1851
triadic
#7A187F #7F7A18 #187F7A
tetradic
#7A187F #7F4618 #1D7F18 #18517F
square
#7A187F #7F4618 #1D7F18 #18517F
split-complementary
#7A187F #517F18 #187F46
monochromatic
#19051A #490E4C #7A187F #AB22B2 #D238D9

Accessibility & contrast

On white

9.27
#7A187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7A187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A187F
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A187F#FFFFFF#000000##FFFFFF
##7A187F1.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#314B7D
Tritanopia (blue-blind)
#7D2B4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7a187f;
/* rgb */ color: rgb(122, 24, 127);
/* oklch */ color: oklch(42.2% 0.175 325.9);
Tailwind
colors: {
  custom: {
    50: '#a462a4',
    500: '#7a187f',
    950: '#000000',
  },
}
SCSS
$custom: #7a187f;
$custom-light: #a462a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a187f",
  "rgb": {
    "r": 122,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 297.087,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42166,
    "c": 0.17506,
    "h": 325.9
  },
  "luminance": 0.06323
}

Semantic roles & 50–950 ramp

primary
#7A187F
secondary
#45B33F
accent
#EB3D45
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A187F

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

Preview Lab → · Contrast checker → · Palette generator →

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