#7B46E1#7B46E1

#7B46E1 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.4% C 0.221 H 293.3°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7B46E1
RGBrgb(123, 70, 225)
HSLhsl(261, 72%, 58%)
HSVhsv(261, 69%, 88%)
CMYKcmyk(45.3%, 68.9%, 0%, 11.8%)
CIE-LABlab(44.27, 56.00, -70.86)
CIE-LCHlch(44.27, 90.32, 308.32°)
OKLaboklab(54.42% 0.0875 -0.2029)
OKLCHoklch(54.42% 0.221 293.3)
XYZxyz(23.9454, 14.0268, 72.6654)
Luminance0.1403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B46E1 #ACE146
analogous
#465EE1 #7B46E1 #C846E1
triadic
#7B46E1 #E17B46 #46E17B
tetradic
#7B46E1 #E1465E #ACE146 #46E1C8
square
#7B46E1 #E1465E #ACE146 #46E1C8
split-complementary
#7B46E1 #E1C846 #5EE146
monochromatic
#431895 #5A21C9 #7B46E1 #A17BEA #C6AFF2

Accessibility & contrast

On white

5.52
#7B46E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#7B46E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B46E1
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B46E1#FFFFFF#000000##FFFFFF
##7B46E11.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE6
Deuteranopia (green-blind)
#0066DE
Tritanopia (blue-blind)
#5D6D8E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7b46e1;
/* rgb */ color: rgb(123, 70, 225);
/* oklch */ color: oklch(54.4% 0.221 293.3);
Tailwind
colors: {
  custom: {
    50: '#a97deb',
    500: '#7b46e1',
    950: '#000000',
  },
}
SCSS
$custom: #7b46e1;
$custom-light: #a97deb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b46e1",
  "rgb": {
    "r": 123,
    "g": 70,
    "b": 225
  },
  "hsl": {
    "h": 260.516,
    "s": 72.093,
    "l": 57.843
  },
  "oklch": {
    "l": 0.54423,
    "c": 0.22098,
    "h": 293.3
  },
  "luminance": 0.14028
}

Semantic roles & 50–950 ramp

primary
#7B46E1
secondary
#CBE0A2
accent
#EF39B1
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7B46E1

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

Preview Lab → · Contrast checker → · Palette generator →

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