#7B18A8#7B18A8

#7B18A8 is a mid, highly saturated purple. Relative luminance 0.077; OKLCH L 45.3% C 0.210 H 311.5°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7B18A8
RGBrgb(123, 24, 168)
HSLhsl(281, 75%, 38%)
HSVhsv(281, 86%, 66%)
CMYKcmyk(26.8%, 85.7%, 0%, 34.1%)
CIE-LABlab(33.33, 60.89, -55.39)
CIE-LCHlch(33.33, 82.31, 317.71°)
OKLaboklab(45.32% 0.1389 -0.1572)
OKLCHoklch(45.32% 0.21 311.5)
XYZxyz(15.5615, 7.6918, 37.7031)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B18A8 #45A818
analogous
#3318A8 #7B18A8 #A8188D
triadic
#7B18A8 #A87B18 #18A87B
tetradic
#7B18A8 #A83318 #45A818 #188DA8
square
#7B18A8 #A83318 #45A818 #188DA8
split-complementary
#7B18A8 #8DA818 #18A833
monochromatic
#2D093D #541072 #7B18A8 #A220DE #B954E7

Accessibility & contrast

On white

8.27
#7B18A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7B18A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B18A8
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B18A8#FFFFFF#000000##FFFFFF
##7B18A81.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0050A5
Tritanopia (blue-blind)
#754064
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b18a8;
/* rgb */ color: rgb(123, 24, 168);
/* oklch */ color: oklch(45.3% 0.210 311.5);
Tailwind
colors: {
  custom: {
    50: '#a665c3',
    500: '#7b18a8',
    950: '#000000',
  },
}
SCSS
$custom: #7b18a8;
$custom-light: #a665c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b18a8",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 168
  },
  "hsl": {
    "h": 281.25,
    "s": 75,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45317,
    "c": 0.20973,
    "h": 311.5
  },
  "luminance": 0.07691
}

Semantic roles & 50–950 ramp

primary
#7B18A8
secondary
#78C953
accent
#F23671
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100613
muted
#7F7A82

Preview Lab

Preview with #7B18A8

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

Preview Lab → · Contrast checker → · Palette generator →

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