#7C46CB#7C46CB

#7C46CB is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.8% C 0.196 H 298.0°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#7C46CB
RGBrgb(124, 70, 203)
HSLhsl(264, 56%, 54%)
HSVhsv(264, 66%, 80%)
CMYKcmyk(38.9%, 65.5%, 0%, 20.4%)
CIE-LABlab(42.73, 50.46, -60.75)
CIE-LCHlch(42.73, 78.98, 309.72°)
OKLaboklab(52.83% 0.092 -0.1732)
OKLCHoklch(52.83% 0.196 298)
XYZxyz(21.2791, 12.9769, 57.8720)
Luminance0.1298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C46CB #95CB46
analogous
#4652CB #7C46CB #BE46CB
triadic
#7C46CB #CB7C46 #46CB7C
tetradic
#7C46CB #CB4652 #95CB46 #46CBBE
square
#7C46CB #CB4652 #95CB46 #46CBBE
split-complementary
#7C46CB #CBBE46 #52CB46
monochromatic
#432176 #5F2EA5 #7C46CB #9E76D8 #C0A6E6

Accessibility & contrast

On white

5.84
#7C46CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#7C46CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C46CB
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C46CB#FFFFFF#000000##FFFFFF
##7C46CB1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0063C8
Tritanopia (blue-blind)
#696582
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7c46cb;
/* rgb */ color: rgb(124, 70, 203);
/* oklch */ color: oklch(52.8% 0.196 298.0);
Tailwind
colors: {
  custom: {
    50: '#a87ddc',
    500: '#7c46cb',
    950: '#000000',
  },
}
SCSS
$custom: #7c46cb;
$custom-light: #a87ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#7c46cb",
  "rgb": {
    "r": 124,
    "g": 70,
    "b": 203
  },
  "hsl": {
    "h": 264.361,
    "s": 56.118,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52825,
    "c": 0.1961,
    "h": 298
  },
  "luminance": 0.12977
}

Semantic roles & 50–950 ramp

primary
#7C46CB
secondary
#BCD39A
accent
#DF48A2
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7C46CB

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

Preview Lab → · Contrast checker → · Palette generator →

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