#7F46BB#7F46BB

#7F46BB is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.0% C 0.178 H 303.1°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#7F46BB
RGBrgb(127, 70, 187)
HSLhsl(269, 46%, 50%)
HSVhsv(269, 63%, 73%)
CMYKcmyk(32.1%, 62.6%, 0%, 26.7%)
CIE-LABlab(41.97, 47.08, -52.65)
CIE-LCHlch(41.97, 70.63, 311.80°)
OKLaboklab(52% 0.0974 -0.1493)
OKLCHoklch(52% 0.178 303.1)
XYZxyz(19.9101, 12.4802, 48.3641)
Luminance0.1248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F46BB #82BB46
analogous
#4647BB #7F46BB #BA46BB
triadic
#7F46BB #BB7F46 #46BB7F
tetradic
#7F46BB #BB4647 #82BB46 #46BBBA
square
#7F46BB #BB4647 #82BB46 #46BBBA
split-complementary
#7F46BB #BBBA46 #47BB46
monochromatic
#432462 #61358F #7F46BB #9E73CB #BDA0DC

Accessibility & contrast

On white

6.01
#7F46BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F46BB
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F46BB#FFFFFF#000000##FFFFFF
##7F46BB1.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#2463B8
Tritanopia (blue-blind)
#735F7A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7f46bb;
/* rgb */ color: rgb(127, 70, 187);
/* oklch */ color: oklch(52.0% 0.178 303.1);
Tailwind
colors: {
  custom: {
    50: '#a87cd0',
    500: '#7f46bb',
    950: '#000000',
  },
}
SCSS
$custom: #7f46bb;
$custom-light: #a87cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f46bb",
  "rgb": {
    "r": 127,
    "g": 70,
    "b": 187
  },
  "hsl": {
    "h": 269.231,
    "s": 46.245,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52004,
    "c": 0.17824,
    "h": 303.1
  },
  "luminance": 0.1248
}

Semantic roles & 50–950 ramp

primary
#7F46BB
secondary
#AFC894
accent
#D65296
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7F46BB

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

Preview Lab → · Contrast checker → · Palette generator →

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