#74178E#74178E

#74178E is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.2% C 0.186 H 317.2°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#74178E
RGBrgb(116, 23, 142)
HSLhsl(287, 72%, 32%)
HSVhsv(287, 84%, 56%)
CMYKcmyk(18.3%, 83.8%, 0%, 44.3%)
CIE-LABlab(30.11, 54.79, -44.82)
CIE-LCHlch(30.11, 70.79, 320.72°)
OKLaboklab(42.22% 0.1365 -0.1263)
OKLCHoklch(42.22% 0.186 317.2)
XYZxyz(12.3906, 6.2793, 26.1453)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#74178E #318E17
analogous
#39178E #74178E #8E176C
triadic
#74178E #8E7417 #178E74
tetradic
#74178E #8E3917 #318E17 #176C8E
square
#74178E #8E3917 #318E17 #176C8E
split-complementary
#74178E #6C8E17 #178E39
monochromatic
#1E0625 #490E59 #74178E #9F20C3 #BD3FE0

Accessibility & contrast

On white

9.31
#74178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#74178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #74178E
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##74178E#FFFFFF#000000##FFFFFF
##74178E1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#19498C
Tritanopia (blue-blind)
#733454
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #74178e;
/* rgb */ color: rgb(116, 23, 142);
/* oklch */ color: oklch(42.2% 0.186 317.2);
Tailwind
colors: {
  custom: {
    50: '#a062b0',
    500: '#74178e',
    950: '#000000',
  },
}
SCSS
$custom: #74178e;
$custom-light: #a062b0;
$custom-dark: #000000;
JSON
{
  "hex": "#74178e",
  "rgb": {
    "r": 116,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 286.891,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42215,
    "c": 0.18599,
    "h": 317.2
  },
  "luminance": 0.06279
}

Semantic roles & 50–950 ramp

primary
#74178E
secondary
#5CC040
accent
#EF3961
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #74178E

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

Preview Lab → · Contrast checker → · Palette generator →

#74178E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva