#7B1CA7#7B1CA7

#7B1CA7 is a mid, highly saturated purple. Relative luminance 0.078; OKLCH L 45.5% C 0.206 H 311.6°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#7B1CA7
RGBrgb(123, 28, 167)
HSLhsl(281, 71%, 38%)
HSVhsv(281, 83%, 65%)
CMYKcmyk(26.3%, 83.2%, 0%, 34.5%)
CIE-LABlab(33.63, 59.58, -54.30)
CIE-LCHlch(33.63, 80.62, 317.66°)
OKLaboklab(45.5% 0.1365 -0.154)
OKLCHoklch(45.5% 0.206 311.6)
XYZxyz(15.5574, 7.8319, 37.2439)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1CA7 #48A71C
analogous
#351CA7 #7B1CA7 #A71C8D
triadic
#7B1CA7 #A77B1C #1CA77B
tetradic
#7B1CA7 #A7351C #48A71C #1C8DA7
square
#7B1CA7 #A7351C #48A71C #1C8DA7
split-complementary
#7B1CA7 #8DA71C #1CA735
monochromatic
#2E0A3E #541373 #7B1CA7 #A126DB #B85AE3

Accessibility & contrast

On white

8.18
#7B1CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7B1CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1CA7
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1CA7#FFFFFF#000000##FFFFFF
##7B1CA71.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0051A4
Tritanopia (blue-blind)
#754164
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7b1ca7;
/* rgb */ color: rgb(123, 28, 167);
/* oklch */ color: oklch(45.5% 0.206 311.6);
Tailwind
colors: {
  custom: {
    50: '#a666c2',
    500: '#7b1ca7',
    950: '#000000',
  },
}
SCSS
$custom: #7b1ca7;
$custom-light: #a666c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1ca7",
  "rgb": {
    "r": 123,
    "g": 28,
    "b": 167
  },
  "hsl": {
    "h": 281.007,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45499,
    "c": 0.2058,
    "h": 311.6
  },
  "luminance": 0.07831
}

Semantic roles & 50–950 ramp

primary
#7B1CA7
secondary
#7BC758
accent
#EE3A73
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7B1CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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