#7C42CF#7C42CF

#7C42CF is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.6% C 0.206 H 297.7°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#7C42CF
RGBrgb(124, 66, 207)
HSLhsl(265, 59%, 54%)
HSVhsv(265, 68%, 81%)
CMYKcmyk(40.1%, 68.1%, 0%, 18.8%)
CIE-LABlab(42.29, 53.51, -63.78)
CIE-LCHlch(42.29, 83.25, 310.00°)
OKLaboklab(52.6% 0.0957 -0.1821)
OKLCHoklch(52.6% 0.206 297.7)
XYZxyz(21.5200, 12.6862, 60.3343)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C42CF #95CF42
analogous
#424ECF #7C42CF #C342CF
triadic
#7C42CF #CF7C42 #42CF7C
tetradic
#7C42CF #CF424E #95CF42 #42CFC3
square
#7C42CF #CF424E #95CF42 #42CFC3
split-complementary
#7C42CF #CFC342 #4ECF42
monochromatic
#431F78 #5F2BA9 #7C42CF #9E73DB #C0A4E8

Accessibility & contrast

On white

5.94
#7C42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7C42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C42CF
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C42CF#FFFFFF#000000##FFFFFF
##7C42CF1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D3
Deuteranopia (green-blind)
#0062CC
Tritanopia (blue-blind)
#686483
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7c42cf;
/* rgb */ color: rgb(124, 66, 207);
/* oklch */ color: oklch(52.6% 0.206 297.7);
Tailwind
colors: {
  custom: {
    50: '#a87adf',
    500: '#7c42cf',
    950: '#000000',
  },
}
SCSS
$custom: #7c42cf;
$custom-light: #a87adf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c42cf",
  "rgb": {
    "r": 124,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 264.681,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52601,
    "c": 0.20567,
    "h": 297.7
  },
  "luminance": 0.12687
}

Semantic roles & 50–950 ramp

primary
#7C42CF
secondary
#BCD598
accent
#E345A2
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7C42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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