#7B1C95#7B1C95

#7B1C95 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.1% C 0.190 H 317.6°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#7B1C95
RGBrgb(123, 28, 149)
HSLhsl(287, 68%, 35%)
HSVhsv(287, 81%, 58%)
CMYKcmyk(17.4%, 81.2%, 0%, 41.6%)
CIE-LABlab(32.28, 55.98, -45.55)
CIE-LCHlch(32.28, 72.17, 320.87°)
OKLaboklab(44.13% 0.1403 -0.1283)
OKLCHoklch(44.13% 0.19 317.6)
XYZxyz(14.0077, 7.2120, 29.0822)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1C95 #36951C
analogous
#3E1C95 #7B1C95 #951C73
triadic
#7B1C95 #957B1C #1C957B
tetradic
#7B1C95 #953E1C #36951C #1C7395
square
#7B1C95 #953E1C #36951C #1C7395
split-complementary
#7B1C95 #73951C #1C953E
monochromatic
#26092E #501261 #7B1C95 #A626C9 #BF4EDE

Accessibility & contrast

On white

8.60
#7B1C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7B1C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1C95
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1C95#FFFFFF#000000##FFFFFF
##7B1C951.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#204F92
Tritanopia (blue-blind)
#7A3859
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b1c95;
/* rgb */ color: rgb(123, 28, 149);
/* oklch */ color: oklch(44.1% 0.190 317.6);
Tailwind
colors: {
  custom: {
    50: '#a565b5',
    500: '#7b1c95',
    950: '#000000',
  },
}
SCSS
$custom: #7b1c95;
$custom-light: #a565b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1c95",
  "rgb": {
    "r": 123,
    "g": 28,
    "b": 149
  },
  "hsl": {
    "h": 287.107,
    "s": 68.362,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44134,
    "c": 0.19014,
    "h": 317.6
  },
  "luminance": 0.07211
}

Semantic roles & 50–950 ramp

primary
#7B1C95
secondary
#65C04D
accent
#EB3D62
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7B1C95

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

Preview Lab → · Contrast checker → · Palette generator →

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