#7F46C8#7F46C8

#7F46C8 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.9% C 0.193 H 300.0°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#7F46C8
RGBrgb(127, 70, 200)
HSLhsl(266, 54%, 53%)
HSVhsv(266, 65%, 78%)
CMYKcmyk(36.5%, 65%, 0%, 21.6%)
CIE-LABlab(42.86, 50.32, -58.79)
CIE-LCHlch(42.86, 77.38, 310.56°)
OKLaboklab(52.93% 0.0964 -0.1673)
OKLCHoklch(52.93% 0.193 300)
XYZxyz(21.3653, 13.0623, 56.0280)
Luminance0.1306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F46C8 #8FC846
analogous
#464EC8 #7F46C8 #C046C8
triadic
#7F46C8 #C87F46 #46C87F
tetradic
#7F46C8 #C8464E #8FC846 #46C8C0
square
#7F46C8 #C8464E #8FC846 #46C8C0
split-complementary
#7F46C8 #C8C046 #4EC846
monochromatic
#452272 #6130A1 #7F46C8 #A075D6 #C0A4E4

Accessibility & contrast

On white

5.81
#7F46C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#7F46C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F46C8
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F46C8#FFFFFF#000000##FFFFFF
##7F46C81.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CC
Deuteranopia (green-blind)
#0064C5
Tritanopia (blue-blind)
#6F6381
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7f46c8;
/* rgb */ color: rgb(127, 70, 200);
/* oklch */ color: oklch(52.9% 0.193 300.0);
Tailwind
colors: {
  custom: {
    50: '#a97dd9',
    500: '#7f46c8',
    950: '#000000',
  },
}
SCSS
$custom: #7f46c8;
$custom-light: #a97dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f46c8",
  "rgb": {
    "r": 127,
    "g": 70,
    "b": 200
  },
  "hsl": {
    "h": 266.308,
    "s": 54.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52928,
    "c": 0.1931,
    "h": 300
  },
  "luminance": 0.13062
}

Semantic roles & 50–950 ramp

primary
#7F46C8
secondary
#B8D199
accent
#DE4A9D
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F46C8

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

Preview Lab → · Contrast checker → · Palette generator →

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