#7B18A5#7B18A5

#7B18A5 is a mid, highly saturated purple. Relative luminance 0.076; OKLCH L 45.1% C 0.207 H 312.4°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#7B18A5
RGBrgb(123, 24, 165)
HSLhsl(282, 75%, 37%)
HSVhsv(282, 85%, 65%)
CMYKcmyk(25.5%, 85.5%, 0%, 35.3%)
CIE-LABlab(33.10, 60.29, -53.97)
CIE-LCHlch(33.10, 80.91, 318.17°)
OKLaboklab(45.08% 0.1397 -0.153)
OKLCHoklch(45.08% 0.207 312.4)
XYZxyz(15.2853, 7.5813, 36.2482)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B18A5 #42A518
analogous
#3518A5 #7B18A5 #A51888
triadic
#7B18A5 #A57B18 #18A57B
tetradic
#7B18A5 #A53518 #42A518 #1888A5
square
#7B18A5 #A53518 #42A518 #1888A5
split-complementary
#7B18A5 #88A518 #18A535
monochromatic
#2B083A #531070 #7B18A5 #A320DA #BA52E6

Accessibility & contrast

On white

8.35
#7B18A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B18A5
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B18A5#FFFFFF#000000##FFFFFF
##7B18A51.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0050A2
Tritanopia (blue-blind)
#763E62
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b18a5;
/* rgb */ color: rgb(123, 24, 165);
/* oklch */ color: oklch(45.1% 0.207 312.4);
Tailwind
colors: {
  custom: {
    50: '#a665c1',
    500: '#7b18a5',
    950: '#000000',
  },
}
SCSS
$custom: #7b18a5;
$custom-light: #a665c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b18a5",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 165
  },
  "hsl": {
    "h": 282.128,
    "s": 74.603,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45078,
    "c": 0.20716,
    "h": 312.4
  },
  "luminance": 0.07581
}

Semantic roles & 50–950 ramp

primary
#7B18A5
secondary
#74C851
accent
#F1376E
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7B18A5

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

Preview Lab → · Contrast checker → · Palette generator →

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