#7B1870#7B1870

#7B1870 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.4% C 0.164 H 333.3°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#7B1870
RGBrgb(123, 24, 112)
HSLhsl(307, 67%, 29%)
HSVhsv(307, 80%, 48%)
CMYKcmyk(0%, 80.5%, 8.9%, 51.8%)
CIE-LABlab(29.50, 50.60, -26.85)
CIE-LCHlch(29.50, 57.28, 332.05°)
OKLaboklab(41.4% 0.1463 -0.0737)
OKLCHoklch(41.4% 0.164 333.3)
XYZxyz(11.4197, 6.0351, 15.8895)
Luminance0.0603 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1870 #187B23
analogous
#55187B #7B1870 #7B183F
triadic
#7B1870 #707B18 #18707B
tetradic
#7B1870 #7B5518 #187B23 #183F7B
square
#7B1870 #7B5518 #187B23 #183F7B
split-complementary
#7B1870 #3F7B18 #187B55
monochromatic
#1A0517 #480E41 #7B1870 #AE229F #D836C6

Accessibility & contrast

On white

9.52
#7B1870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7B1870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1870
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1870#FFFFFF#000000##FFFFFF
##7B18701.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133D72
Deuteranopia (green-blind)
#3B4A6E
Tritanopia (blue-blind)
#812343
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7b1870;
/* rgb */ color: rgb(123, 24, 112);
/* oklch */ color: oklch(41.4% 0.164 333.3);
Tailwind
colors: {
  custom: {
    50: '#a56299',
    500: '#7b1870',
    950: '#000000',
  },
}
SCSS
$custom: #7b1870;
$custom-light: #a56299;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1870",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 306.667,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41402,
    "c": 0.16385,
    "h": 333.3
  },
  "luminance": 0.06034
}

Semantic roles & 50–950 ramp

primary
#7B1870
secondary
#3FB04C
accent
#EA513E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B1870

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

Preview Lab → · Contrast checker → · Palette generator →

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