#7F18A0#7F18A0

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

Color values

HEX#7F18A0
RGBrgb(127, 24, 160)
HSLhsl(285, 74%, 36%)
HSVhsv(285, 85%, 63%)
CMYKcmyk(20.6%, 85%, 0%, 37.3%)
CIE-LABlab(33.36, 59.97, -50.49)
CIE-LCHlch(33.36, 78.39, 319.91°)
OKLaboklab(45.27% 0.1461 -0.1426)
OKLCHoklch(45.27% 0.204 315.7)
XYZxyz(15.4232, 7.7040, 33.9255)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F18A0 #39A018
analogous
#3B18A0 #7F18A0 #A0187D
triadic
#7F18A0 #A07F18 #18A07F
tetradic
#7F18A0 #A03B18 #39A018 #187DA0
square
#7F18A0 #A03B18 #39A018 #187DA0
split-complementary
#7F18A0 #7DA018 #18A03B
monochromatic
#2B0836 #55106B #7F18A0 #A920D5 #C04EE4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F18A0#FFFFFF#000000##FFFFFF
##7F18A01.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)
#0049A3
Deuteranopia (green-blind)
#11519D
Tritanopia (blue-blind)
#7C3B5F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7f18a0;
/* rgb */ color: rgb(127, 24, 160);
/* oklch */ color: oklch(45.3% 0.204 315.7);
Tailwind
colors: {
  custom: {
    50: '#a965bd',
    500: '#7f18a0',
    950: '#000000',
  },
}
SCSS
$custom: #7f18a0;
$custom-light: #a965bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f18a0",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 285.441,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4527,
    "c": 0.20418,
    "h": 315.7
  },
  "luminance": 0.07703
}

Semantic roles & 50–950 ramp

primary
#7F18A0
secondary
#6BC64D
accent
#F13764
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7F18A0

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

Preview Lab → · Contrast checker → · Palette generator →

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