#7B1CA1#7B1CA1

#7B1CA1 is a mid, highly saturated purple. Relative luminance 0.076; OKLCH L 45.0% C 0.201 H 313.5°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#7B1CA1
RGBrgb(123, 28, 161)
HSLhsl(283, 70%, 37%)
HSVhsv(283, 83%, 63%)
CMYKcmyk(23.6%, 82.6%, 0%, 36.9%)
CIE-LABlab(33.17, 58.36, -51.43)
CIE-LCHlch(33.17, 77.79, 318.61°)
OKLaboklab(45.03% 0.138 -0.1456)
OKLCHoklch(45.03% 0.201 313.5)
XYZxyz(15.0155, 7.6152, 34.3902)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1CA1 #42A11C
analogous
#391CA1 #7B1CA1 #A11C85
triadic
#7B1CA1 #A17B1C #1CA17B
tetradic
#7B1CA1 #A1391C #42A11C #1C85A1
square
#7B1CA1 #A1391C #42A11C #1C85A1
split-complementary
#7B1CA1 #85A11C #1CA139
monochromatic
#2B0A39 #53136D #7B1CA1 #A325D5 #BA56E2

Accessibility & contrast

On white

8.32
#7B1CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7B1CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1CA1
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1CA1#FFFFFF#000000##FFFFFF
##7B1CA11.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#05509E
Tritanopia (blue-blind)
#773E60
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b1ca1;
/* rgb */ color: rgb(123, 28, 161);
/* oklch */ color: oklch(45.0% 0.201 313.5);
Tailwind
colors: {
  custom: {
    50: '#a666be',
    500: '#7b1ca1',
    950: '#000000',
  },
}
SCSS
$custom: #7b1ca1;
$custom-light: #a666be;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1ca1",
  "rgb": {
    "r": 123,
    "g": 28,
    "b": 161
  },
  "hsl": {
    "h": 282.857,
    "s": 70.37,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45032,
    "c": 0.20055,
    "h": 313.5
  },
  "luminance": 0.07615
}

Semantic roles & 50–950 ramp

primary
#7B1CA1
secondary
#74C554
accent
#ED3B6E
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7B1CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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