#7C1874#7C1874

#7C1874 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.167 H 331.8°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#7C1874
RGBrgb(124, 24, 116)
HSLhsl(305, 68%, 29%)
HSVhsv(305, 81%, 49%)
CMYKcmyk(0%, 80.6%, 6.5%, 51.4%)
CIE-LABlab(29.91, 51.47, -28.74)
CIE-LCHlch(29.91, 58.95, 330.83°)
OKLaboklab(41.81% 0.1475 -0.0792)
OKLCHoklch(41.81% 0.167 331.8)
XYZxyz(11.7912, 6.2003, 17.0954)
Luminance0.0620 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1874 #187C20
analogous
#52187C #7C1874 #7C1842
triadic
#7C1874 #747C18 #18747C
tetradic
#7C1874 #7C5218 #187C20 #18427C
square
#7C1874 #7C5218 #187C20 #18427C
split-complementary
#7C1874 #427C18 #187C52
monochromatic
#1A0518 #490E44 #7C1874 #AF22A4 #D836CB

Accessibility & contrast

On white

9.38
#7C1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C1874
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1874#FFFFFF#000000##FFFFFF
##7C18741.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3E76
Deuteranopia (green-blind)
#3A4B72
Tritanopia (blue-blind)
#812545
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7c1874;
/* rgb */ color: rgb(124, 24, 116);
/* oklch */ color: oklch(41.8% 0.167 331.8);
Tailwind
colors: {
  custom: {
    50: '#a5629c',
    500: '#7c1874',
    950: '#000000',
  },
}
SCSS
$custom: #7c1874;
$custom-light: #a5629c;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1874",
  "rgb": {
    "r": 124,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 304.8,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41805,
    "c": 0.1674,
    "h": 331.8
  },
  "luminance": 0.06199
}

Semantic roles & 50–950 ramp

primary
#7C1874
secondary
#3FB148
accent
#EA4B3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7C1874

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

Preview Lab → · Contrast checker → · Palette generator →

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