#7B42CE#7B42CE

#7B42CE is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.4% C 0.204 H 297.5°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#7B42CE
RGBrgb(123, 66, 206)
HSLhsl(264, 59%, 53%)
HSVhsv(264, 68%, 81%)
CMYKcmyk(40.3%, 68%, 0%, 19.2%)
CIE-LABlab(42.10, 53.07, -63.51)
CIE-LCHlch(42.10, 82.76, 309.88°)
OKLaboklab(52.42% 0.0945 -0.1813)
OKLCHoklch(52.42% 0.204 297.5)
XYZxyz(21.2543, 12.5633, 59.6857)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B42CE #95CE42
analogous
#424FCE #7B42CE #C142CE
triadic
#7B42CE #CE7B42 #42CE7B
tetradic
#7B42CE #CE424F #95CE42 #42CEC1
square
#7B42CE #CE424F #95CE42 #42CEC1
split-complementary
#7B42CE #CEC142 #4FCE42
monochromatic
#431F77 #5E2BA7 #7B42CE #9D73DB #BFA3E7

Accessibility & contrast

On white

5.98
#7B42CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7B42CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B42CE
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B42CE#FFFFFF#000000##FFFFFF
##7B42CE1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D2
Deuteranopia (green-blind)
#0062CB
Tritanopia (blue-blind)
#666483
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7b42ce;
/* rgb */ color: rgb(123, 66, 206);
/* oklch */ color: oklch(52.4% 0.204 297.5);
Tailwind
colors: {
  custom: {
    50: '#a77ade',
    500: '#7b42ce',
    950: '#000000',
  },
}
SCSS
$custom: #7b42ce;
$custom-light: #a77ade;
$custom-dark: #000000;
JSON
{
  "hex": "#7b42ce",
  "rgb": {
    "r": 123,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 264.429,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.52416,
    "c": 0.20444,
    "h": 297.5
  },
  "luminance": 0.12564
}

Semantic roles & 50–950 ramp

primary
#7B42CE
secondary
#BBD498
accent
#E246A2
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7B42CE

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

Preview Lab → · Contrast checker → · Palette generator →

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