#7B42CF#7B42CF

#7B42CF is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.5% C 0.206 H 297.3°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#7B42CF
RGBrgb(123, 66, 207)
HSLhsl(264, 59%, 54%)
HSVhsv(264, 68%, 81%)
CMYKcmyk(40.6%, 68.1%, 0%, 18.8%)
CIE-LABlab(42.17, 53.32, -63.97)
CIE-LCHlch(42.17, 83.28, 309.81°)
OKLaboklab(52.49% 0.0943 -0.1826)
OKLCHoklch(52.49% 0.206 297.3)
XYZxyz(21.3762, 12.6120, 60.3275)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B42CF #96CF42
analogous
#424FCF #7B42CF #C142CF
triadic
#7B42CF #CF7B42 #42CF7B
tetradic
#7B42CF #CF424F #96CF42 #42CFC1
square
#7B42CF #CF424F #96CF42 #42CFC1
split-complementary
#7B42CF #CFC142 #4FCF42
monochromatic
#431F78 #5E2BA9 #7B42CF #9D73DB #BFA4E8

Accessibility & contrast

On white

5.96
#7B42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7B42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B42CF
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B42CF#FFFFFF#000000##FFFFFF
##7B42CF1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D3
Deuteranopia (green-blind)
#0062CC
Tritanopia (blue-blind)
#666483
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b42cf;
/* rgb */ color: rgb(123, 66, 207);
/* oklch */ color: oklch(52.5% 0.206 297.3);
Tailwind
colors: {
  custom: {
    50: '#a87adf',
    500: '#7b42cf',
    950: '#000000',
  },
}
SCSS
$custom: #7b42cf;
$custom-light: #a87adf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b42cf",
  "rgb": {
    "r": 123,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 264.255,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52494,
    "c": 0.20556,
    "h": 297.3
  },
  "luminance": 0.12612
}

Semantic roles & 50–950 ramp

primary
#7B42CF
secondary
#BCD598
accent
#E345A3
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7B42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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