#7B42E2#7B42E2

#7B42E2 is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.0% C 0.227 H 293.7°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#7B42E2
RGBrgb(123, 66, 226)
HSLhsl(261, 73%, 57%)
HSVhsv(261, 71%, 89%)
CMYKcmyk(45.6%, 70.8%, 0%, 11.4%)
CIE-LABlab(43.65, 58.21, -72.44)
CIE-LCHlch(43.65, 92.93, 308.78°)
OKLaboklab(54.01% 0.091 -0.2075)
OKLCHoklch(54.01% 0.227 293.7)
XYZxyz(23.8403, 13.5977, 73.3053)
Luminance0.1360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B42E2 #A9E242
analogous
#4259E2 #7B42E2 #CB42E2
triadic
#7B42E2 #E27B42 #42E27B
tetradic
#7B42E2 #E24259 #A9E242 #42E2CB
square
#7B42E2 #E24259 #A9E242 #42E2CB
split-complementary
#7B42E2 #E2CB42 #59E242
monochromatic
#431793 #5B1FC8 #7B42E2 #A077EA #C5ACF2

Accessibility & contrast

On white

5.65
#7B42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#7B42E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B42E2
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B42E2#FFFFFF#000000##FFFFFF
##7B42E21.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E7
Deuteranopia (green-blind)
#0064DF
Tritanopia (blue-blind)
#5D6B8E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7b42e2;
/* rgb */ color: rgb(123, 66, 226);
/* oklch */ color: oklch(54.0% 0.227 293.7);
Tailwind
colors: {
  custom: {
    50: '#aa7bec',
    500: '#7b42e2',
    950: '#000000',
  },
}
SCSS
$custom: #7b42e2;
$custom-light: #aa7bec;
$custom-dark: #000000;
JSON
{
  "hex": "#7b42e2",
  "rgb": {
    "r": 123,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 261.375,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.54006,
    "c": 0.22661,
    "h": 293.7
  },
  "luminance": 0.13598
}

Semantic roles & 50–950 ramp

primary
#7B42E2
secondary
#C9E09F
accent
#F038AE
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7B42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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