#7B18C9#7B18C9

#7B18C9 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 48.1% C 0.238 H 302.5°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7B18C9
RGBrgb(123, 24, 201)
HSLhsl(274, 79%, 44%)
HSVhsv(274, 88%, 79%)
CMYKcmyk(38.8%, 88.1%, 0%, 21.2%)
CIE-LABlab(36.14, 67.79, -70.34)
CIE-LCHlch(36.14, 97.69, 313.94°)
OKLaboklab(48.12% 0.1281 -0.2011)
OKLCHoklch(48.12% 0.238 302.5)
XYZxyz(19.0351, 9.0812, 55.9970)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B18C9 #66C918
analogous
#2218C9 #7B18C9 #C918BF
triadic
#7B18C9 #C97B18 #18C97B
tetradic
#7B18C9 #C92218 #66C918 #18BFC9
square
#7B18C9 #C92218 #66C918 #18BFC9
split-complementary
#7B18C9 #BFC918 #18C922
monochromatic
#380B5C #5A1192 #7B18C9 #9A37E7 #B56EEE

Accessibility & contrast

On white

7.46
#7B18C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7B18C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B18C9
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B18C9#FFFFFF#000000##FFFFFF
##7B18C91.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CD
Deuteranopia (green-blind)
#0054C6
Tritanopia (blue-blind)
#6A4F77
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b18c9;
/* rgb */ color: rgb(123, 24, 201);
/* oklch */ color: oklch(48.1% 0.238 302.5);
Tailwind
colors: {
  custom: {
    50: '#a967db',
    500: '#7b18c9',
    950: '#000000',
  },
}
SCSS
$custom: #7b18c9;
$custom-light: #a967db;
$custom-dark: #000000;
JSON
{
  "hex": "#7b18c9",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 201
  },
  "hsl": {
    "h": 273.559,
    "s": 78.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48115,
    "c": 0.23842,
    "h": 302.5
  },
  "luminance": 0.09081
}

Semantic roles & 50–950 ramp

primary
#7B18C9
secondary
#98D469
accent
#F53388
background
#FBF6FD
surface
#F6EBFB
border
#D0C6D4
text
#110715
muted
#807A83

Preview Lab

Preview with #7B18C9

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

Preview Lab → · Contrast checker → · Palette generator →

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