#7D18B4#7D18B4

#7D18B4 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.6% C 0.221 H 308.8°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7D18B4
RGBrgb(125, 24, 180)
HSLhsl(279, 76%, 40%)
HSVhsv(279, 87%, 71%)
CMYKcmyk(30.6%, 86.7%, 0%, 29.4%)
CIE-LABlab(34.62, 63.65, -60.45)
CIE-LCHlch(34.62, 87.78, 316.47°)
OKLaboklab(46.57% 0.1381 -0.172)
OKLCHoklch(46.57% 0.221 308.8)
XYZxyz(17.0206, 8.3088, 43.8783)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D18B4 #4FB418
analogous
#2F18B4 #7D18B4 #B4189D
triadic
#7D18B4 #B47D18 #18B47D
tetradic
#7D18B4 #B42F18 #4FB418 #189DB4
square
#7D18B4 #B42F18 #4FB418 #189DB4
split-complementary
#7D18B4 #9DB418 #18B42F
monochromatic
#320A48 #57117E #7D18B4 #A027E2 #B85DE9

Accessibility & contrast

On white

7.89
#7D18B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7D18B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D18B4
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D18B4#FFFFFF#000000##FFFFFF
##7D18B41.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#74456B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d18b4;
/* rgb */ color: rgb(125, 24, 180);
/* oklch */ color: oklch(46.6% 0.221 308.8);
Tailwind
colors: {
  custom: {
    50: '#a966cb',
    500: '#7d18b4',
    950: '#000000',
  },
}
SCSS
$custom: #7d18b4;
$custom-light: #a966cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d18b4",
  "rgb": {
    "r": 125,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 278.846,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.46572,
    "c": 0.22057,
    "h": 308.8
  },
  "luminance": 0.08309
}

Semantic roles & 50–950 ramp

primary
#7D18B4
secondary
#83CD5B
accent
#F33578
background
#FAF6FC
surface
#F5EBF9
border
#CFC6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7D18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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