#7B42D1#7B42D1

#7B42D1 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.6% C 0.208 H 296.9°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#7B42D1
RGBrgb(123, 66, 209)
HSLhsl(264, 61%, 54%)
HSVhsv(264, 68%, 82%)
CMYKcmyk(41.1%, 68.4%, 0%, 18%)
CIE-LABlab(42.32, 53.83, -64.88)
CIE-LCHlch(42.32, 84.30, 309.69°)
OKLaboklab(52.65% 0.094 -0.1853)
OKLCHoklch(52.65% 0.208 296.9)
XYZxyz(21.6222, 12.7104, 61.6234)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B42D1 #98D142
analogous
#4251D1 #7B42D1 #C342D1
triadic
#7B42D1 #D17B42 #42D17B
tetradic
#7B42D1 #D14251 #98D142 #42D1C3
square
#7B42D1 #D14251 #98D142 #42D1C3
split-complementary
#7B42D1 #D1C342 #51D142
monochromatic
#431E7B #5E2AAC #7B42D1 #9D73DD #C0A4E9

Accessibility & contrast

On white

5.93
#7B42D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7B42D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B42D1
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B42D1#FFFFFF#000000##FFFFFF
##7B42D11.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D5
Deuteranopia (green-blind)
#0062CE
Tritanopia (blue-blind)
#656584
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b42d1;
/* rgb */ color: rgb(123, 66, 209);
/* oklch */ color: oklch(52.6% 0.208 296.9);
Tailwind
colors: {
  custom: {
    50: '#a87ae0',
    500: '#7b42d1',
    950: '#000000',
  },
}
SCSS
$custom: #7b42d1;
$custom-light: #a87ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b42d1",
  "rgb": {
    "r": 123,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 263.916,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52649,
    "c": 0.20779,
    "h": 296.9
  },
  "luminance": 0.12711
}

Semantic roles & 50–950 ramp

primary
#7B42D1
secondary
#BED699
accent
#E444A4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7B42D1

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

Preview Lab → · Contrast checker → · Palette generator →

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