#7B1F94#7B1F94

#7B1F94 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.3% C 0.186 H 317.8°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#7B1F94
RGBrgb(123, 31, 148)
HSLhsl(287, 65%, 35%)
HSVhsv(287, 79%, 58%)
CMYKcmyk(16.9%, 79.1%, 0%, 42%)
CIE-LABlab(32.55, 54.83, -44.52)
CIE-LCHlch(32.55, 70.62, 320.92°)
OKLaboklab(44.3% 0.138 -0.1253)
OKLCHoklch(44.3% 0.186 317.8)
XYZxyz(14.0029, 7.3297, 28.6884)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1F94 #38941F
analogous
#401F94 #7B1F94 #941F73
triadic
#7B1F94 #947B1F #1F947B
tetradic
#7B1F94 #94401F #38941F #1F7394
square
#7B1F94 #94401F #38941F #1F7394
split-complementary
#7B1F94 #73941F #1F9440
monochromatic
#270A2F #511461 #7B1F94 #A52AC7 #BE53DB

Accessibility & contrast

On white

8.52
#7B1F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7B1F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1F94
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1F94#FFFFFF#000000##FFFFFF
##7B1F941.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004797
Deuteranopia (green-blind)
#234F91
Tritanopia (blue-blind)
#7A3959
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b1f94;
/* rgb */ color: rgb(123, 31, 148);
/* oklch */ color: oklch(44.3% 0.186 317.8);
Tailwind
colors: {
  custom: {
    50: '#a566b4',
    500: '#7b1f94',
    950: '#000000',
  },
}
SCSS
$custom: #7b1f94;
$custom-light: #a566b4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1f94",
  "rgb": {
    "r": 123,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 287.179,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44296,
    "c": 0.1864,
    "h": 317.8
  },
  "luminance": 0.07329
}

Semantic roles & 50–950 ramp

primary
#7B1F94
secondary
#68BE51
accent
#E83F64
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7B1F94

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

Preview Lab → · Contrast checker → · Palette generator →

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