#7C18A8#7C18A8

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

Color values

HEX#7C18A8
RGBrgb(124, 24, 168)
HSLhsl(282, 75%, 38%)
HSVhsv(282, 86%, 66%)
CMYKcmyk(26.2%, 85.7%, 0%, 34.1%)
CIE-LABlab(33.49, 61.05, -55.12)
CIE-LCHlch(33.49, 82.25, 317.92°)
OKLaboklab(45.46% 0.1402 -0.1564)
OKLCHoklch(45.46% 0.21 311.9)
XYZxyz(15.7054, 7.7660, 37.7099)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C18A8 #44A818
analogous
#3418A8 #7C18A8 #A8188C
triadic
#7C18A8 #A87C18 #18A87C
tetradic
#7C18A8 #A83418 #44A818 #188CA8
square
#7C18A8 #A83418 #44A818 #188CA8
split-complementary
#7C18A8 #8CA818 #18A834
monochromatic
#2D093D #541072 #7C18A8 #A420DE #BA54E7

Accessibility & contrast

On white

8.22
#7C18A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7C18A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C18A8
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C18A8#FFFFFF#000000##FFFFFF
##7C18A81.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c18a8;
/* rgb */ color: rgb(124, 24, 168);
/* oklch */ color: oklch(45.5% 0.210 311.9);
Tailwind
colors: {
  custom: {
    50: '#a765c3',
    500: '#7c18a8',
    950: '#000000',
  },
}
SCSS
$custom: #7c18a8;
$custom-light: #a765c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c18a8",
  "rgb": {
    "r": 124,
    "g": 24,
    "b": 168
  },
  "hsl": {
    "h": 281.667,
    "s": 75,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45458,
    "c": 0.21002,
    "h": 311.9
  },
  "luminance": 0.07766
}

Semantic roles & 50–950 ramp

primary
#7C18A8
secondary
#77C953
accent
#F2366F
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100613
muted
#7F7A82

Preview Lab

Preview with #7C18A8

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

Preview Lab → · Contrast checker → · Palette generator →

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