#7B42BA#7B42BA

#7B42BA is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.9% C 0.182 H 302.2°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#7B42BA
RGBrgb(123, 66, 186)
HSLhsl(269, 48%, 49%)
HSVhsv(269, 65%, 73%)
CMYKcmyk(33.9%, 64.5%, 0%, 27.1%)
CIE-LABlab(40.66, 48.02, -54.20)
CIE-LCHlch(40.66, 72.42, 311.54°)
OKLaboklab(50.93% 0.0968 -0.1539)
OKLCHoklch(50.93% 0.182 302.2)
XYZxyz(18.9774, 11.6525, 47.6942)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B42BA #81BA42
analogous
#4245BA #7B42BA #B742BA
triadic
#7B42BA #BA7B42 #42BA7B
tetradic
#7B42BA #BA4245 #81BA42 #42BAB7
square
#7B42BA #BA4245 #81BA42 #42BAB7
split-complementary
#7B42BA #BAB742 #45BA42
monochromatic
#3F2260 #5D328D #7B42BA #9A6ECB #BA9BDB

Accessibility & contrast

On white

6.31
#7B42BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7B42BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B42BA
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B42BA#FFFFFF#000000##FFFFFF
##7B42BA1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#155FB7
Tritanopia (blue-blind)
#6E5C78
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7b42ba;
/* rgb */ color: rgb(123, 66, 186);
/* oklch */ color: oklch(50.9% 0.182 302.2);
Tailwind
colors: {
  custom: {
    50: '#a67acf',
    500: '#7b42ba',
    950: '#000000',
  },
}
SCSS
$custom: #7b42ba;
$custom-light: #a67acf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b42ba",
  "rgb": {
    "r": 123,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 268.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50928,
    "c": 0.18183,
    "h": 302.2
  },
  "luminance": 0.11653
}

Semantic roles & 50–950 ramp

primary
#7B42BA
secondary
#ADC890
accent
#D75197
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7B42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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