#7B18B4#7B18B4

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

Color values

HEX#7B18B4
RGBrgb(123, 24, 180)
HSLhsl(278, 76%, 40%)
HSVhsv(278, 87%, 71%)
CMYKcmyk(31.7%, 86.7%, 0%, 29.4%)
CIE-LABlab(34.31, 63.35, -60.96)
CIE-LCHlch(34.31, 87.92, 316.10°)
OKLaboklab(46.3% 0.1353 -0.1736)
OKLCHoklch(46.3% 0.22 307.9)
XYZxyz(16.7315, 8.1598, 43.8647)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B18B4 #51B418
analogous
#2D18B4 #7B18B4 #B4189F
triadic
#7B18B4 #B47B18 #18B47B
tetradic
#7B18B4 #B42D18 #51B418 #189FB4
square
#7B18B4 #B42D18 #51B418 #189FB4
split-complementary
#7B18B4 #9FB418 #18B42D
monochromatic
#310A48 #56117E #7B18B4 #9E27E2 #B65DE9

Accessibility & contrast

On white

7.98
#7B18B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7B18B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B18B4
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B18B4#FFFFFF#000000##FFFFFF
##7B18B41.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB8
Deuteranopia (green-blind)
#0051B1
Tritanopia (blue-blind)
#71456B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b18b4;
/* rgb */ color: rgb(123, 24, 180);
/* oklch */ color: oklch(46.3% 0.220 307.9);
Tailwind
colors: {
  custom: {
    50: '#a766cb',
    500: '#7b18b4',
    950: '#000000',
  },
}
SCSS
$custom: #7b18b4;
$custom-light: #a766cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b18b4",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 278.077,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.463,
    "c": 0.22008,
    "h": 307.9
  },
  "luminance": 0.0816
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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