#7B18A1#7B18A1

#7B18A1 is a dark, highly saturated purple. Relative luminance 0.074; OKLCH L 44.8% C 0.204 H 313.7°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#7B18A1
RGBrgb(123, 24, 161)
HSLhsl(283, 74%, 36%)
HSVhsv(283, 85%, 63%)
CMYKcmyk(23.6%, 85.1%, 0%, 36.9%)
CIE-LABlab(32.78, 59.49, -52.05)
CIE-LCHlch(32.78, 79.05, 318.81°)
OKLaboklab(44.76% 0.1407 -0.1474)
OKLCHoklch(44.76% 0.204 313.7)
XYZxyz(14.9269, 7.4379, 34.3607)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B18A1 #3EA118
analogous
#3718A1 #7B18A1 #A11883
triadic
#7B18A1 #A17B18 #18A17B
tetradic
#7B18A1 #A13718 #3EA118 #1883A1
square
#7B18A1 #A13718 #3EA118 #1883A1
split-complementary
#7B18A1 #83A118 #18A137
monochromatic
#2A0836 #52106C #7B18A1 #A420D6 #BB4FE5

Accessibility & contrast

On white

8.44
#7B18A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7B18A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B18A1
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B18A1#FFFFFF#000000##FFFFFF
##7B18A11.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#004F9E
Tritanopia (blue-blind)
#773C5F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b18a1;
/* rgb */ color: rgb(123, 24, 161);
/* oklch */ color: oklch(44.8% 0.204 313.7);
Tailwind
colors: {
  custom: {
    50: '#a664be',
    500: '#7b18a1',
    950: '#000000',
  },
}
SCSS
$custom: #7b18a1;
$custom-light: #a664be;
$custom-dark: #000000;
JSON
{
  "hex": "#7b18a1",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 283.358,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44764,
    "c": 0.20375,
    "h": 313.7
  },
  "luminance": 0.07437
}

Semantic roles & 50–950 ramp

primary
#7B18A1
secondary
#6FC74E
accent
#F1376B
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7B18A1

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

Preview Lab → · Contrast checker → · Palette generator →

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