#7F18A8#7F18A8

#7F18A8 is a mid, highly saturated purple. Relative luminance 0.080; OKLCH L 45.9% C 0.211 H 313.1°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#7F18A8
RGBrgb(127, 24, 168)
HSLhsl(283, 75%, 38%)
HSVhsv(283, 86%, 66%)
CMYKcmyk(24.4%, 85.7%, 0%, 34.1%)
CIE-LABlab(33.97, 61.53, -54.33)
CIE-LCHlch(33.97, 82.08, 318.56°)
OKLaboklab(45.89% 0.1442 -0.1539)
OKLCHoklch(45.89% 0.211 313.1)
XYZxyz(16.1456, 7.9930, 37.7305)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F18A8 #41A818
analogous
#3718A8 #7F18A8 #A81889
triadic
#7F18A8 #A87F18 #18A87F
tetradic
#7F18A8 #A83718 #41A818 #1889A8
square
#7F18A8 #A83718 #41A818 #1889A8
split-complementary
#7F18A8 #89A818 #18A837
monochromatic
#2E093D #571072 #7F18A8 #A720DE #BD54E7

Accessibility & contrast

On white

8.08
#7F18A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7F18A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F18A8
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F18A8#FFFFFF#000000##FFFFFF
##7F18A81.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0052A5
Tritanopia (blue-blind)
#7A3F64
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f18a8;
/* rgb */ color: rgb(127, 24, 168);
/* oklch */ color: oklch(45.9% 0.211 313.1);
Tailwind
colors: {
  custom: {
    50: '#a965c3',
    500: '#7f18a8',
    950: '#000000',
  },
}
SCSS
$custom: #7f18a8;
$custom-light: #a965c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f18a8",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 168
  },
  "hsl": {
    "h": 282.917,
    "s": 75,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45885,
    "c": 0.2109,
    "h": 313.1
  },
  "luminance": 0.07992
}

Semantic roles & 50–950 ramp

primary
#7F18A8
secondary
#74C953
accent
#F2366C
background
#FAF6FC
surface
#F5EBF8
border
#CFC6D1
text
#100613
muted
#7F7A82

Preview Lab

Preview with #7F18A8

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

Preview Lab → · Contrast checker → · Palette generator →

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