#7B42CA#7B42CA

#7B42CA is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.1% C 0.200 H 298.4°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#7B42CA
RGBrgb(123, 66, 202)
HSLhsl(265, 56%, 53%)
HSVhsv(265, 67%, 79%)
CMYKcmyk(39.1%, 67.3%, 0%, 20.8%)
CIE-LABlab(41.80, 52.05, -61.68)
CIE-LCHlch(41.80, 80.71, 310.16°)
OKLaboklab(52.11% 0.095 -0.1759)
OKLCHoklch(52.11% 0.2 298.4)
XYZxyz(20.7746, 12.3714, 57.1591)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B42CA #91CA42
analogous
#424DCA #7B42CA #BF42CA
triadic
#7B42CA #CA7B42 #42CA7B
tetradic
#7B42CA #CA424D #91CA42 #42CABF
square
#7B42CA #CA424D #91CA42 #42CABF
split-complementary
#7B42CA #CABF42 #4DCA42
monochromatic
#422072 #5E2DA2 #7B42CA #9C72D7 #BEA2E5

Accessibility & contrast

On white

6.04
#7B42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7B42CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B42CA
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B42CA#FFFFFF#000000##FFFFFF
##7B42CA1.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#0061C7
Tritanopia (blue-blind)
#686281
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7b42ca;
/* rgb */ color: rgb(123, 66, 202);
/* oklch */ color: oklch(52.1% 0.200 298.4);
Tailwind
colors: {
  custom: {
    50: '#a77adb',
    500: '#7b42ca',
    950: '#000000',
  },
}
SCSS
$custom: #7b42ca;
$custom-light: #a77adb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b42ca",
  "rgb": {
    "r": 123,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 265.147,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.5211,
    "c": 0.19995,
    "h": 298.4
  },
  "luminance": 0.12372
}

Semantic roles & 50–950 ramp

primary
#7B42CA
secondary
#B9D196
accent
#DF48A0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7B42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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