#7B42CC#7B42CC

#7B42CC is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.3% C 0.202 H 297.9°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#7B42CC
RGBrgb(123, 66, 204)
HSLhsl(265, 58%, 53%)
HSVhsv(265, 68%, 80%)
CMYKcmyk(39.7%, 67.6%, 0%, 20%)
CIE-LABlab(41.95, 52.56, -62.60)
CIE-LCHlch(41.95, 81.74, 310.01°)
OKLaboklab(52.26% 0.0947 -0.1786)
OKLCHoklch(52.26% 0.202 297.9)
XYZxyz(21.0129, 12.4667, 58.4143)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B42CC #93CC42
analogous
#424ECC #7B42CC #C042CC
triadic
#7B42CC #CC7B42 #42CC7B
tetradic
#7B42CC #CC424E #93CC42 #42CCC0
square
#7B42CC #CC424E #93CC42 #42CCC0
split-complementary
#7B42CC #CCC042 #4ECC42
monochromatic
#421F74 #5E2CA4 #7B42CC #9D72D9 #BEA2E6

Accessibility & contrast

On white

6.01
#7B42CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#7B42CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B42CC
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B42CC#FFFFFF#000000##FFFFFF
##7B42CC1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D0
Deuteranopia (green-blind)
#0061C9
Tritanopia (blue-blind)
#676382
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7b42cc;
/* rgb */ color: rgb(123, 66, 204);
/* oklch */ color: oklch(52.3% 0.202 297.9);
Tailwind
colors: {
  custom: {
    50: '#a77adc',
    500: '#7b42cc',
    950: '#000000',
  },
}
SCSS
$custom: #7b42cc;
$custom-light: #a77adc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b42cc",
  "rgb": {
    "r": 123,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 264.783,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52263,
    "c": 0.2022,
    "h": 297.9
  },
  "luminance": 0.12467
}

Semantic roles & 50–950 ramp

primary
#7B42CC
secondary
#BAD397
accent
#E147A1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7B42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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