#7B42CD#7B42CD

#7B42CD is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.3% C 0.203 H 297.7°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#7B42CD
RGBrgb(123, 66, 205)
HSLhsl(265, 58%, 53%)
HSVhsv(265, 68%, 80%)
CMYKcmyk(40%, 67.8%, 0%, 19.6%)
CIE-LABlab(42.02, 52.81, -63.06)
CIE-LCHlch(42.02, 82.25, 309.95°)
OKLaboklab(52.34% 0.0946 -0.18)
OKLCHoklch(52.34% 0.203 297.7)
XYZxyz(21.1332, 12.5148, 59.0480)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B42CD #94CD42
analogous
#424ECD #7B42CD #C042CD
triadic
#7B42CD #CD7B42 #42CD7B
tetradic
#7B42CD #CD424E #94CD42 #42CDC0
square
#7B42CD #CD424E #94CD42 #42CDC0
split-complementary
#7B42CD #CDC042 #4ECD42
monochromatic
#431F76 #5E2CA6 #7B42CD #9D72DA #BFA3E7

Accessibility & contrast

On white

5.99
#7B42CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7B42CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B42CD
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B42CD#FFFFFF#000000##FFFFFF
##7B42CD1.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D1
Deuteranopia (green-blind)
#0062CA
Tritanopia (blue-blind)
#676382
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7b42cd;
/* rgb */ color: rgb(123, 66, 205);
/* oklch */ color: oklch(52.3% 0.203 297.7);
Tailwind
colors: {
  custom: {
    50: '#a77add',
    500: '#7b42cd',
    950: '#000000',
  },
}
SCSS
$custom: #7b42cd;
$custom-light: #a77add;
$custom-dark: #000000;
JSON
{
  "hex": "#7b42cd",
  "rgb": {
    "r": 123,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 264.604,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52339,
    "c": 0.20331,
    "h": 297.7
  },
  "luminance": 0.12515
}

Semantic roles & 50–950 ramp

primary
#7B42CD
secondary
#BBD397
accent
#E146A2
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7B42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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