#7F18A7#7F18A7

#7F18A7 is a mid, highly saturated purple. Relative luminance 0.080; OKLCH L 45.8% C 0.210 H 313.4°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#7F18A7
RGBrgb(127, 24, 167)
HSLhsl(283, 75%, 37%)
HSVhsv(283, 86%, 65%)
CMYKcmyk(24%, 85.6%, 0%, 34.5%)
CIE-LABlab(33.89, 61.33, -53.85)
CIE-LCHlch(33.89, 81.62, 318.72°)
OKLaboklab(45.81% 0.1445 -0.1525)
OKLCHoklch(45.81% 0.21 313.4)
XYZxyz(16.0528, 7.9559, 37.2417)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F18A7 #40A718
analogous
#3818A7 #7F18A7 #A71887
triadic
#7F18A7 #A77F18 #18A77F
tetradic
#7F18A7 #A73818 #40A718 #1887A7
square
#7F18A7 #A73818 #40A718 #1887A7
split-complementary
#7F18A7 #87A718 #18A738
monochromatic
#2E093C #561071 #7F18A7 #A820DD #BD53E6

Accessibility & contrast

On white

8.10
#7F18A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7F18A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F18A7
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F18A7#FFFFFF#000000##FFFFFF
##7F18A71.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0052A4
Tritanopia (blue-blind)
#7B3E63
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f18a7;
/* rgb */ color: rgb(127, 24, 167);
/* oklch */ color: oklch(45.8% 0.210 313.4);
Tailwind
colors: {
  custom: {
    50: '#a965c2',
    500: '#7f18a7',
    950: '#000000',
  },
}
SCSS
$custom: #7f18a7;
$custom-light: #a965c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f18a7",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 167
  },
  "hsl": {
    "h": 283.217,
    "s": 74.869,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45807,
    "c": 0.21007,
    "h": 313.4
  },
  "luminance": 0.07955
}

Semantic roles & 50–950 ramp

primary
#7F18A7
secondary
#73C952
accent
#F1366B
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7F18A7

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

Preview Lab → · Contrast checker → · Palette generator →

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