#7F46B9#7F46B9

#7F46B9 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.9% C 0.176 H 303.7°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#7F46B9
RGBrgb(127, 70, 185)
HSLhsl(270, 45%, 50%)
HSVhsv(270, 62%, 73%)
CMYKcmyk(31.4%, 62.2%, 0%, 27.5%)
CIE-LABlab(41.84, 46.59, -51.69)
CIE-LCHlch(41.84, 69.59, 312.03°)
OKLaboklab(51.87% 0.0975 -0.1464)
OKLCHoklch(51.87% 0.176 303.7)
XYZxyz(19.6975, 12.3952, 47.2443)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F46B9 #80B946
analogous
#4647B9 #7F46B9 #B846B9
triadic
#7F46B9 #B97F46 #46B97F
tetradic
#7F46B9 #B94647 #80B946 #46B9B8
square
#7F46B9 #B94647 #80B946 #46B9B8
split-complementary
#7F46B9 #B9B846 #47B946
monochromatic
#422460 #61358D #7F46B9 #9E72CA #BC9FDB

Accessibility & contrast

On white

6.04
#7F46B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7F46B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F46B9
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F46B9#FFFFFF#000000##FFFFFF
##7F46B91.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BD
Deuteranopia (green-blind)
#2763B6
Tritanopia (blue-blind)
#745E79
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7f46b9;
/* rgb */ color: rgb(127, 70, 185);
/* oklch */ color: oklch(51.9% 0.176 303.7);
Tailwind
colors: {
  custom: {
    50: '#a87ccf',
    500: '#7f46b9',
    950: '#000000',
  },
}
SCSS
$custom: #7f46b9;
$custom-light: #a87ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f46b9",
  "rgb": {
    "r": 127,
    "g": 70,
    "b": 185
  },
  "hsl": {
    "h": 269.739,
    "s": 45.098,
    "l": 50
  },
  "oklch": {
    "l": 0.51866,
    "c": 0.17594,
    "h": 303.7
  },
  "luminance": 0.12395
}

Semantic roles & 50–950 ramp

primary
#7F46B9
secondary
#AEC794
accent
#D55394
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7F46B9

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

Preview Lab → · Contrast checker → · Palette generator →

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