#7B1785#7B1785

#7B1785 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.7% C 0.181 H 323.9°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#7B1785
RGBrgb(123, 23, 133)
HSLhsl(295, 71%, 31%)
HSVhsv(295, 83%, 52%)
CMYKcmyk(7.5%, 82.7%, 0%, 47.8%)
CIE-LABlab(30.68, 54.45, -38.23)
CIE-LCHlch(30.68, 66.53, 324.93°)
OKLaboklab(42.66% 0.1464 -0.1068)
OKLCHoklch(42.66% 0.181 323.9)
XYZxyz(12.7080, 6.5180, 22.7745)
Luminance0.0652 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1785 #218517
analogous
#441785 #7B1785 #851758
triadic
#7B1785 #857B17 #17857B
tetradic
#7B1785 #854417 #218517 #175885
square
#7B1785 #854417 #218517 #175885
split-complementary
#7B1785 #588517 #178544
monochromatic
#1A051D #4B0E51 #7B1785 #AB20B9 #CE3ADD

Accessibility & contrast

On white

9.12
#7B1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7B1785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1785
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1785#FFFFFF#000000##FFFFFF
##7B17851.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004188
Deuteranopia (green-blind)
#2D4C83
Tritanopia (blue-blind)
#7D2E4F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b1785;
/* rgb */ color: rgb(123, 23, 133);
/* oklch */ color: oklch(42.7% 0.181 323.9);
Tailwind
colors: {
  custom: {
    50: '#a563a9',
    500: '#7b1785',
    950: '#000000',
  },
}
SCSS
$custom: #7b1785;
$custom-light: #a563a9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1785",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 294.545,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42656,
    "c": 0.18124,
    "h": 323.9
  },
  "luminance": 0.06517
}

Semantic roles & 50–950 ramp

primary
#7B1785
secondary
#4AB93F
accent
#ED3B4B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B1785

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

Preview Lab → · Contrast checker → · Palette generator →

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