#7C18B4#7C18B4

#7C18B4 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.4% C 0.220 H 308.4°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#7C18B4
RGBrgb(124, 24, 180)
HSLhsl(278, 76%, 40%)
HSVhsv(278, 87%, 71%)
CMYKcmyk(31.1%, 86.7%, 0%, 29.4%)
CIE-LABlab(34.47, 63.50, -60.71)
CIE-LCHlch(34.47, 87.85, 316.29°)
OKLaboklab(46.44% 0.1367 -0.1728)
OKLCHoklch(46.44% 0.22 308.4)
XYZxyz(16.8753, 8.2339, 43.8715)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C18B4 #50B418
analogous
#2E18B4 #7C18B4 #B4189E
triadic
#7C18B4 #B47C18 #18B47C
tetradic
#7C18B4 #B42E18 #50B418 #189EB4
square
#7C18B4 #B42E18 #50B418 #189EB4
split-complementary
#7C18B4 #9EB418 #18B42E
monochromatic
#320A48 #57117E #7C18B4 #9F27E2 #B75DE9

Accessibility & contrast

On white

7.93
#7C18B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7C18B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C18B4
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C18B4#FFFFFF#000000##FFFFFF
##7C18B41.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c18b4;
/* rgb */ color: rgb(124, 24, 180);
/* oklch */ color: oklch(46.4% 0.220 308.4);
Tailwind
colors: {
  custom: {
    50: '#a866cb',
    500: '#7c18b4',
    950: '#000000',
  },
}
SCSS
$custom: #7c18b4;
$custom-light: #a866cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c18b4",
  "rgb": {
    "r": 124,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 278.462,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.46436,
    "c": 0.22032,
    "h": 308.4
  },
  "luminance": 0.08234
}

Semantic roles & 50–950 ramp

primary
#7C18B4
secondary
#84CD5B
accent
#F33579
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7C18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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