#7F18C9#7F18C9

#7F18C9 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.6% C 0.239 H 304.0°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#7F18C9
RGBrgb(127, 24, 201)
HSLhsl(275, 79%, 44%)
HSVhsv(275, 88%, 79%)
CMYKcmyk(36.8%, 88.1%, 0%, 21.2%)
CIE-LABlab(36.71, 68.30, -69.38)
CIE-LCHlch(36.71, 97.36, 314.55°)
OKLaboklab(48.63% 0.1339 -0.1981)
OKLCHoklch(48.63% 0.239 304)
XYZxyz(19.6192, 9.3824, 56.0244)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F18C9 #62C918
analogous
#2618C9 #7F18C9 #C918BB
triadic
#7F18C9 #C97F18 #18C97F
tetradic
#7F18C9 #C92618 #62C918 #18BBC9
square
#7F18C9 #C92618 #62C918 #18BBC9
split-complementary
#7F18C9 #BBC918 #18C926
monochromatic
#3A0B5C #5C1192 #7F18C9 #9E37E7 #B86EEE

Accessibility & contrast

On white

7.30
#7F18C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7F18C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F18C9
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F18C9#FFFFFF#000000##FFFFFF
##7F18C91.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CD
Deuteranopia (green-blind)
#0056C6
Tritanopia (blue-blind)
#704F77
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f18c9;
/* rgb */ color: rgb(127, 24, 201);
/* oklch */ color: oklch(48.6% 0.239 304.0);
Tailwind
colors: {
  custom: {
    50: '#ac67db',
    500: '#7f18c9',
    950: '#000000',
  },
}
SCSS
$custom: #7f18c9;
$custom-light: #ac67db;
$custom-dark: #000000;
JSON
{
  "hex": "#7f18c9",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 201
  },
  "hsl": {
    "h": 274.915,
    "s": 78.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48625,
    "c": 0.23914,
    "h": 304
  },
  "luminance": 0.09382
}

Semantic roles & 50–950 ramp

primary
#7F18C9
secondary
#96D469
accent
#F53384
background
#FBF6FD
surface
#F6EBFB
border
#D0C6D4
text
#110715
muted
#807A83

Preview Lab

Preview with #7F18C9

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

Preview Lab → · Contrast checker → · Palette generator →

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