#7B1B95#7B1B95

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

Color values

HEX#7B1B95
RGBrgb(123, 27, 149)
HSLhsl(287, 69%, 35%)
HSVhsv(287, 82%, 58%)
CMYKcmyk(17.4%, 81.9%, 0%, 41.6%)
CIE-LABlab(32.18, 56.28, -45.72)
CIE-LCHlch(32.18, 72.51, 320.91°)
OKLaboklab(44.06% 0.1411 -0.1288)
OKLCHoklch(44.06% 0.191 317.6)
XYZxyz(13.9843, 7.1654, 29.0744)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1B95 #35951B
analogous
#3E1B95 #7B1B95 #951B72
triadic
#7B1B95 #957B1B #1B957B
tetradic
#7B1B95 #953E1B #35951B #1B7295
square
#7B1B95 #953E1B #35951B #1B7295
split-complementary
#7B1B95 #72951B #1B953E
monochromatic
#25082D #501261 #7B1B95 #A624C9 #BF4CDF

Accessibility & contrast

On white

8.63
#7B1B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7B1B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1B95
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1B95#FFFFFF#000000##FFFFFF
##7B1B951.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b1b95;
/* rgb */ color: rgb(123, 27, 149);
/* oklch */ color: oklch(44.1% 0.191 317.6);
Tailwind
colors: {
  custom: {
    50: '#a565b5',
    500: '#7b1b95',
    950: '#000000',
  },
}
SCSS
$custom: #7b1b95;
$custom-light: #a565b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1b95",
  "rgb": {
    "r": 123,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 287.213,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44061,
    "c": 0.19104,
    "h": 317.6
  },
  "luminance": 0.07165
}

Semantic roles & 50–950 ramp

primary
#7B1B95
secondary
#64C14B
accent
#EC3C61
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7B1B95

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

Preview Lab → · Contrast checker → · Palette generator →

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