#7B42D2#7B42D2

#7B42D2 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.7% C 0.209 H 296.7°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#7B42D2
RGBrgb(123, 66, 210)
HSLhsl(264, 62%, 54%)
HSVhsv(264, 69%, 82%)
CMYKcmyk(41.4%, 68.6%, 0%, 17.6%)
CIE-LABlab(42.40, 54.09, -65.33)
CIE-LCHlch(42.40, 84.81, 309.62°)
OKLaboklab(52.73% 0.0938 -0.1866)
OKLCHoklch(52.73% 0.209 296.7)
XYZxyz(21.7464, 12.7601, 62.2775)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B42D2 #99D242
analogous
#4251D2 #7B42D2 #C342D2
triadic
#7B42D2 #D27B42 #42D27B
tetradic
#7B42D2 #D24251 #99D242 #42D2C3
square
#7B42D2 #D24251 #99D242 #42D2C3
split-complementary
#7B42D2 #D2C342 #51D242
monochromatic
#431E7C #5E29AD #7B42D2 #9E73DE #C0A5EA

Accessibility & contrast

On white

5.91
#7B42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7B42D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B42D2
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B42D2#FFFFFF#000000##FFFFFF
##7B42D21.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D6
Deuteranopia (green-blind)
#0062CF
Tritanopia (blue-blind)
#656585
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b42d2;
/* rgb */ color: rgb(123, 66, 210);
/* oklch */ color: oklch(52.7% 0.209 296.7);
Tailwind
colors: {
  custom: {
    50: '#a87ae1',
    500: '#7b42d2',
    950: '#000000',
  },
}
SCSS
$custom: #7b42d2;
$custom-light: #a87ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b42d2",
  "rgb": {
    "r": 123,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 263.75,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52727,
    "c": 0.20891,
    "h": 296.7
  },
  "luminance": 0.12761
}

Semantic roles & 50–950 ramp

primary
#7B42D2
secondary
#BED799
accent
#E543A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7B42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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