#7B42D5#7B42D5

#7B42D5 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.0% C 0.212 H 296.1°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#7B42D5
RGBrgb(123, 66, 213)
HSLhsl(263, 64%, 55%)
HSVhsv(263, 69%, 84%)
CMYKcmyk(42.3%, 69%, 0%, 16.5%)
CIE-LABlab(42.63, 54.86, -66.68)
CIE-LCHlch(42.63, 86.35, 309.44°)
OKLaboklab(52.96% 0.0933 -0.1906)
OKLCHoklch(52.96% 0.212 296.1)
XYZxyz(22.1237, 12.9110, 64.2643)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B42D5 #9CD542
analogous
#4253D5 #7B42D5 #C442D5
triadic
#7B42D5 #D57B42 #42D57B
tetradic
#7B42D5 #D54253 #9CD542 #42D5C4
square
#7B42D5 #D54253 #9CD542 #42D5C4
split-complementary
#7B42D5 #D5C442 #53D542
monochromatic
#431C80 #5D28B2 #7B42D5 #9E74E0 #C1A6EB

Accessibility & contrast

On white

5.86
#7B42D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7B42D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B42D5
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B42D5#FFFFFF#000000##FFFFFF
##7B42D51.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D9
Deuteranopia (green-blind)
#0063D2
Tritanopia (blue-blind)
#636687
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7b42d5;
/* rgb */ color: rgb(123, 66, 213);
/* oklch */ color: oklch(53.0% 0.212 296.1);
Tailwind
colors: {
  custom: {
    50: '#a87be3',
    500: '#7b42d5',
    950: '#000000',
  },
}
SCSS
$custom: #7b42d5;
$custom-light: #a87be3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b42d5",
  "rgb": {
    "r": 123,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 263.265,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.52962,
    "c": 0.21225,
    "h": 296.1
  },
  "luminance": 0.12911
}

Semantic roles & 50–950 ramp

primary
#7B42D5
secondary
#C0D89A
accent
#E741A6
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #7B42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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