#7B1874#7B1874

#7B1874 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.167 H 331.3°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#7B1874
RGBrgb(123, 24, 116)
HSLhsl(304, 67%, 29%)
HSVhsv(304, 80%, 48%)
CMYKcmyk(0%, 80.5%, 5.7%, 51.8%)
CIE-LABlab(29.73, 51.25, -29.04)
CIE-LCHlch(29.73, 58.90, 330.46°)
OKLaboklab(41.64% 0.1464 -0.0801)
OKLCHoklch(41.64% 0.167 331.3)
XYZxyz(11.6474, 6.1261, 17.0886)
Luminance0.0612 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1874 #187B1F
analogous
#51187B #7B1874 #7B1843
triadic
#7B1874 #747B18 #18747B
tetradic
#7B1874 #7B5118 #187B1F #18437B
square
#7B1874 #7B5118 #187B1F #18437B
split-complementary
#7B1874 #437B18 #187B51
monochromatic
#1A0518 #480E44 #7B1874 #AE22A4 #D836CC

Accessibility & contrast

On white

9.44
#7B1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7B1874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1874
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1874#FFFFFF#000000##FFFFFF
##7B18741.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3D76
Deuteranopia (green-blind)
#394B72
Tritanopia (blue-blind)
#802545
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7b1874;
/* rgb */ color: rgb(123, 24, 116);
/* oklch */ color: oklch(41.6% 0.167 331.3);
Tailwind
colors: {
  custom: {
    50: '#a5629c',
    500: '#7b1874',
    950: '#000000',
  },
}
SCSS
$custom: #7b1874;
$custom-light: #a5629c;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1874",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 304.242,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41639,
    "c": 0.16688,
    "h": 331.3
  },
  "luminance": 0.06125
}

Semantic roles & 50–950 ramp

primary
#7B1874
secondary
#3FB047
accent
#EA4A3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B1874

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

Preview Lab → · Contrast checker → · Palette generator →

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