#7D42BB#7D42BB

#7D42BB is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.2% C 0.183 H 302.8°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#7D42BB
RGBrgb(125, 66, 187)
HSLhsl(269, 48%, 50%)
HSVhsv(269, 65%, 73%)
CMYKcmyk(33.2%, 64.7%, 0%, 26.7%)
CIE-LABlab(40.97, 48.71, -54.28)
CIE-LCHlch(40.97, 72.93, 311.90°)
OKLaboklab(51.23% 0.0994 -0.1541)
OKLCHoklch(51.23% 0.183 302.8)
XYZxyz(19.3732, 11.8443, 48.2696)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D42BB #80BB42
analogous
#4244BB #7D42BB #BA42BB
triadic
#7D42BB #BB7D42 #42BB7D
tetradic
#7D42BB #BB4244 #80BB42 #42BBBA
square
#7D42BB #BB4244 #80BB42 #42BBBA
split-complementary
#7D42BB #BBBA42 #44BB42
monochromatic
#412261 #5F328E #7D42BB #9C6ECC #BB9CDC

Accessibility & contrast

On white

6.23
#7D42BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7D42BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D42BB
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D42BB#FFFFFF#000000##FFFFFF
##7D42BB1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBF
Deuteranopia (green-blind)
#1860B8
Tritanopia (blue-blind)
#715C79
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7d42bb;
/* rgb */ color: rgb(125, 66, 187);
/* oklch */ color: oklch(51.2% 0.183 302.8);
Tailwind
colors: {
  custom: {
    50: '#a77ad0',
    500: '#7d42bb',
    950: '#000000',
  },
}
SCSS
$custom: #7d42bb;
$custom-light: #a77ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d42bb",
  "rgb": {
    "r": 125,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 269.256,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51226,
    "c": 0.18338,
    "h": 302.8
  },
  "luminance": 0.11844
}

Semantic roles & 50–950 ramp

primary
#7D42BB
secondary
#ADC891
accent
#D75096
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7D42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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