#7E18B4#7E18B4

#7E18B4 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.7% C 0.221 H 309.2°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#7E18B4
RGBrgb(126, 24, 180)
HSLhsl(279, 76%, 40%)
HSVhsv(279, 87%, 71%)
CMYKcmyk(30%, 86.7%, 0%, 29.4%)
CIE-LABlab(34.77, 63.79, -60.20)
CIE-LCHlch(34.77, 87.71, 316.66°)
OKLaboklab(46.71% 0.1395 -0.1712)
OKLCHoklch(46.71% 0.221 309.2)
XYZxyz(17.1673, 8.3845, 43.8852)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E18B4 #4EB418
analogous
#3018B4 #7E18B4 #B4189C
triadic
#7E18B4 #B47E18 #18B47E
tetradic
#7E18B4 #B43018 #4EB418 #189CB4
square
#7E18B4 #B43018 #4EB418 #189CB4
split-complementary
#7E18B4 #9CB418 #18B430
monochromatic
#320A48 #58117E #7E18B4 #A127E2 #B95DE9

Accessibility & contrast

On white

7.85
#7E18B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7E18B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E18B4
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E18B4#FFFFFF#000000##FFFFFF
##7E18B41.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0053B1
Tritanopia (blue-blind)
#76456B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e18b4;
/* rgb */ color: rgb(126, 24, 180);
/* oklch */ color: oklch(46.7% 0.221 309.2);
Tailwind
colors: {
  custom: {
    50: '#a966cb',
    500: '#7e18b4',
    950: '#000000',
  },
}
SCSS
$custom: #7e18b4;
$custom-light: #a966cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e18b4",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 279.231,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.46709,
    "c": 0.22083,
    "h": 309.2
  },
  "luminance": 0.08384
}

Semantic roles & 50–950 ramp

primary
#7E18B4
secondary
#82CD5B
accent
#F33577
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7E18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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