#7B1F87#7B1F87

#7B1F87 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.175 H 322.8°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#7B1F87
RGBrgb(123, 31, 135)
HSLhsl(293, 63%, 33%)
HSVhsv(293, 77%, 53%)
CMYKcmyk(8.9%, 77%, 0%, 47.1%)
CIE-LABlab(31.67, 52.34, -37.89)
CIE-LCHlch(31.67, 64.62, 324.09°)
OKLaboklab(43.4% 0.1395 -0.1059)
OKLCHoklch(43.4% 0.175 322.8)
XYZxyz(13.0311, 6.9410, 23.5703)
Luminance0.0694 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1F87 #2B871F
analogous
#471F87 #7B1F87 #871F5F
triadic
#7B1F87 #877B1F #1F877B
tetradic
#7B1F87 #87471F #2B871F #1F5F87
square
#7B1F87 #87471F #2B871F #1F5F87
split-complementary
#7B1F87 #5F871F #1F8747
monochromatic
#200823 #4E1455 #7B1F87 #A82AB9 #C64BD6

Accessibility & contrast

On white

8.79
#7B1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7B1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1F87
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1F87#FFFFFF#000000##FFFFFF
##7B1F871.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#304E85
Tritanopia (blue-blind)
#7D3352
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b1f87;
/* rgb */ color: rgb(123, 31, 135);
/* oklch */ color: oklch(43.4% 0.175 322.8);
Tailwind
colors: {
  custom: {
    50: '#a566aa',
    500: '#7b1f87',
    950: '#000000',
  },
}
SCSS
$custom: #7b1f87;
$custom-light: #a566aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1f87",
  "rgb": {
    "r": 123,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 293.077,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43398,
    "c": 0.17512,
    "h": 322.8
  },
  "luminance": 0.0694
}

Semantic roles & 50–950 ramp

primary
#7B1F87
secondary
#56B84A
accent
#E64255
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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