#7B42D3#7B42D3

#7B42D3 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.8% C 0.210 H 296.5°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#7B42D3
RGBrgb(123, 66, 211)
HSLhsl(264, 62%, 54%)
HSVhsv(264, 69%, 83%)
CMYKcmyk(41.7%, 68.7%, 0%, 17.3%)
CIE-LABlab(42.48, 54.35, -65.78)
CIE-LCHlch(42.48, 85.33, 309.56°)
OKLaboklab(52.81% 0.0937 -0.188)
OKLCHoklch(52.81% 0.21 296.5)
XYZxyz(21.8714, 12.8101, 62.9357)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B42D3 #9AD342
analogous
#4252D3 #7B42D3 #C442D3
triadic
#7B42D3 #D37B42 #42D37B
tetradic
#7B42D3 #D34252 #9AD342 #42D3C4
square
#7B42D3 #D34252 #9AD342 #42D3C4
split-complementary
#7B42D3 #D3C442 #52D342
monochromatic
#431D7D #5E29AF #7B42D3 #9E74DF #C0A5EA

Accessibility & contrast

On white

5.90
#7B42D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7B42D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B42D3
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B42D3#FFFFFF#000000##FFFFFF
##7B42D31.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D7
Deuteranopia (green-blind)
#0062D0
Tritanopia (blue-blind)
#646586
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b42d3;
/* rgb */ color: rgb(123, 66, 211);
/* oklch */ color: oklch(52.8% 0.210 296.5);
Tailwind
colors: {
  custom: {
    50: '#a87be1',
    500: '#7b42d3',
    950: '#000000',
  },
}
SCSS
$custom: #7b42d3;
$custom-light: #a87be1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b42d3",
  "rgb": {
    "r": 123,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 263.586,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.52805,
    "c": 0.21003,
    "h": 296.5
  },
  "luminance": 0.12811
}

Semantic roles & 50–950 ramp

primary
#7B42D3
secondary
#BFD79A
accent
#E542A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7B42D3

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

Preview Lab → · Contrast checker → · Palette generator →

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