#7F46BD#7F46BD

#7F46BD is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.1% C 0.181 H 302.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#7F46BD
RGBrgb(127, 70, 189)
HSLhsl(269, 47%, 51%)
HSVhsv(269, 63%, 74%)
CMYKcmyk(32.8%, 63%, 0%, 25.9%)
CIE-LABlab(42.10, 47.58, -53.61)
CIE-LCHlch(42.10, 71.67, 311.59°)
OKLaboklab(52.14% 0.0973 -0.1521)
OKLCHoklch(52.14% 0.181 302.6)
XYZxyz(20.1257, 12.5664, 49.4995)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F46BD #84BD46
analogous
#4649BD #7F46BD #BA46BD
triadic
#7F46BD #BD7F46 #46BD7F
tetradic
#7F46BD #BD4649 #84BD46 #46BDBA
square
#7F46BD #BD4649 #84BD46 #46BDBA
split-complementary
#7F46BD #BDBA46 #49BD46
monochromatic
#432465 #613492 #7F46BD #9E73CD #BDA0DD

Accessibility & contrast

On white

5.98
#7F46BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7F46BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F46BD
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F46BD#FFFFFF#000000##FFFFFF
##7F46BD1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C1
Deuteranopia (green-blind)
#2063BA
Tritanopia (blue-blind)
#735F7B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7f46bd;
/* rgb */ color: rgb(127, 70, 189);
/* oklch */ color: oklch(52.1% 0.181 302.6);
Tailwind
colors: {
  custom: {
    50: '#a87dd2',
    500: '#7f46bd',
    950: '#000000',
  },
}
SCSS
$custom: #7f46bd;
$custom-light: #a87dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f46bd",
  "rgb": {
    "r": 127,
    "g": 70,
    "b": 189
  },
  "hsl": {
    "h": 268.739,
    "s": 47.41,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52143,
    "c": 0.18054,
    "h": 302.6
  },
  "luminance": 0.12566
}

Semantic roles & 50–950 ramp

primary
#7F46BD
secondary
#B1CA95
accent
#D75197
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7F46BD

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

Preview Lab → · Contrast checker → · Palette generator →

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