#7F18B4#7F18B4

#7F18B4 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.8% C 0.221 H 309.6°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#7F18B4
RGBrgb(127, 24, 180)
HSLhsl(280, 76%, 40%)
HSVhsv(280, 87%, 71%)
CMYKcmyk(29.4%, 86.7%, 0%, 29.4%)
CIE-LABlab(34.92, 63.94, -59.94)
CIE-LCHlch(34.92, 87.64, 316.85°)
OKLaboklab(46.85% 0.1408 -0.1704)
OKLCHoklch(46.85% 0.221 309.6)
XYZxyz(17.3156, 8.4609, 43.8921)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F18B4 #4DB418
analogous
#3118B4 #7F18B4 #B4189B
triadic
#7F18B4 #B47F18 #18B47F
tetradic
#7F18B4 #B43118 #4DB418 #189BB4
square
#7F18B4 #B43118 #4DB418 #189BB4
split-complementary
#7F18B4 #9BB418 #18B431
monochromatic
#330A48 #59117E #7F18B4 #A327E2 #BA5DE9

Accessibility & contrast

On white

7.80
#7F18B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7F18B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F18B4
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F18B4#FFFFFF#000000##FFFFFF
##7F18B41.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0053B1
Tritanopia (blue-blind)
#77456B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f18b4;
/* rgb */ color: rgb(127, 24, 180);
/* oklch */ color: oklch(46.8% 0.221 309.6);
Tailwind
colors: {
  custom: {
    50: '#aa66cb',
    500: '#7f18b4',
    950: '#000000',
  },
}
SCSS
$custom: #7f18b4;
$custom-light: #aa66cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f18b4",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 279.615,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.46847,
    "c": 0.22108,
    "h": 309.6
  },
  "luminance": 0.08461
}

Semantic roles & 50–950 ramp

primary
#7F18B4
secondary
#82CD5B
accent
#F33575
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7F18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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