#7F46C4#7F46C4

#7F46C4 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.6% C 0.189 H 300.9°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#7F46C4
RGBrgb(127, 70, 196)
HSLhsl(267, 52%, 52%)
HSVhsv(267, 64%, 77%)
CMYKcmyk(35.2%, 64.3%, 0%, 23.1%)
CIE-LABlab(42.58, 49.32, -56.92)
CIE-LCHlch(42.58, 75.31, 310.91°)
OKLaboklab(52.64% 0.0968 -0.1618)
OKLCHoklch(52.64% 0.189 300.9)
XYZxyz(20.9040, 12.8777, 53.5982)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F46C4 #8BC446
analogous
#464CC4 #7F46C4 #BE46C4
triadic
#7F46C4 #C47F46 #46C47F
tetradic
#7F46C4 #C4464C #8BC446 #46C4BE
square
#7F46C4 #C4464C #8BC446 #46C4BE
split-complementary
#7F46C4 #C4BE46 #4CC446
monochromatic
#44236D #61329B #7F46C4 #9F74D3 #BFA3E2

Accessibility & contrast

On white

5.87
#7F46C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7F46C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F46C4
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F46C4#FFFFFF#000000##FFFFFF
##7F46C41.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C8
Deuteranopia (green-blind)
#0F64C1
Tritanopia (blue-blind)
#70627F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7f46c4;
/* rgb */ color: rgb(127, 70, 196);
/* oklch */ color: oklch(52.6% 0.189 300.9);
Tailwind
colors: {
  custom: {
    50: '#a97dd7',
    500: '#7f46c4',
    950: '#000000',
  },
}
SCSS
$custom: #7f46c4;
$custom-light: #a97dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f46c4",
  "rgb": {
    "r": 127,
    "g": 70,
    "b": 196
  },
  "hsl": {
    "h": 267.143,
    "s": 51.639,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52639,
    "c": 0.18854,
    "h": 300.9
  },
  "luminance": 0.12878
}

Semantic roles & 50–950 ramp

primary
#7F46C4
secondary
#B6CE97
accent
#DB4D9B
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7F46C4

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

Preview Lab → · Contrast checker → · Palette generator →

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