#7D18C9#7D18C9

#7D18C9 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 48.4% C 0.239 H 303.3°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#7D18C9
RGBrgb(125, 24, 201)
HSLhsl(274, 79%, 44%)
HSVhsv(274, 88%, 79%)
CMYKcmyk(37.8%, 88.1%, 0%, 21.2%)
CIE-LABlab(36.42, 68.04, -69.86)
CIE-LCHlch(36.42, 97.52, 314.24°)
OKLaboklab(48.37% 0.131 -0.1996)
OKLCHoklch(48.37% 0.239 303.3)
XYZxyz(19.3242, 9.2303, 56.0106)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D18C9 #64C918
analogous
#2418C9 #7D18C9 #C918BD
triadic
#7D18C9 #C97D18 #18C97D
tetradic
#7D18C9 #C92418 #64C918 #18BDC9
square
#7D18C9 #C92418 #64C918 #18BDC9
split-complementary
#7D18C9 #BDC918 #18C924
monochromatic
#390B5C #5B1192 #7D18C9 #9C37E7 #B76EEE

Accessibility & contrast

On white

7.38
#7D18C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7D18C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D18C9
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D18C9#FFFFFF#000000##FFFFFF
##7D18C91.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CD
Deuteranopia (green-blind)
#0055C6
Tritanopia (blue-blind)
#6D4F77
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7d18c9;
/* rgb */ color: rgb(125, 24, 201);
/* oklch */ color: oklch(48.4% 0.239 303.3);
Tailwind
colors: {
  custom: {
    50: '#aa67db',
    500: '#7d18c9',
    950: '#000000',
  },
}
SCSS
$custom: #7d18c9;
$custom-light: #aa67db;
$custom-dark: #000000;
JSON
{
  "hex": "#7d18c9",
  "rgb": {
    "r": 125,
    "g": 24,
    "b": 201
  },
  "hsl": {
    "h": 274.237,
    "s": 78.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48369,
    "c": 0.23876,
    "h": 303.3
  },
  "luminance": 0.0923
}

Semantic roles & 50–950 ramp

primary
#7D18C9
secondary
#97D469
accent
#F53386
background
#FBF6FD
surface
#F6EBFB
border
#D0C6D4
text
#110715
muted
#807A83

Preview Lab

Preview with #7D18C9

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

Preview Lab → · Contrast checker → · Palette generator →

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