#7B1895#7B1895

#7B1895 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.9% C 0.194 H 317.8°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#7B1895
RGBrgb(123, 24, 149)
HSLhsl(288, 72%, 34%)
HSVhsv(288, 84%, 58%)
CMYKcmyk(17.4%, 83.9%, 0%, 41.6%)
CIE-LABlab(31.89, 57.14, -46.20)
CIE-LCHlch(31.89, 73.48, 321.05°)
OKLaboklab(43.85% 0.1433 -0.1302)
OKLCHoklch(43.85% 0.194 317.8)
XYZxyz(13.9190, 7.0348, 29.0526)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1895 #329518
analogous
#3D1895 #7B1895 #951871
triadic
#7B1895 #957B18 #18957B
tetradic
#7B1895 #953D18 #329518 #187195
square
#7B1895 #953D18 #329518 #187195
split-complementary
#7B1895 #719518 #18953D
monochromatic
#24072C #4F1060 #7B1895 #A720CA #C146E1

Accessibility & contrast

On white

8.73
#7B1895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7B1895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1895
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1895#FFFFFF#000000##FFFFFF
##7B18951.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#1D4E92
Tritanopia (blue-blind)
#7A3658
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7b1895;
/* rgb */ color: rgb(123, 24, 149);
/* oklch */ color: oklch(43.9% 0.194 317.8);
Tailwind
colors: {
  custom: {
    50: '#a564b5',
    500: '#7b1895',
    950: '#000000',
  },
}
SCSS
$custom: #7b1895;
$custom-light: #a564b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1895",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 287.52,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.43854,
    "c": 0.1936,
    "h": 317.8
  },
  "luminance": 0.07034
}

Semantic roles & 50–950 ramp

primary
#7B1895
secondary
#60C246
accent
#EF395F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7B1895

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

Preview Lab → · Contrast checker → · Palette generator →

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