#7F46BE#7F46BE

#7F46BE is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.2% C 0.182 H 302.4°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#7F46BE
RGBrgb(127, 70, 190)
HSLhsl(269, 48%, 51%)
HSVhsv(269, 63%, 75%)
CMYKcmyk(33.2%, 63.2%, 0%, 25.5%)
CIE-LABlab(42.17, 47.82, -54.08)
CIE-LCHlch(42.17, 72.19, 311.48°)
OKLaboklab(52.21% 0.0972 -0.1535)
OKLCHoklch(52.21% 0.182 302.4)
XYZxyz(20.2347, 12.6100, 50.0732)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F46BE #85BE46
analogous
#4649BE #7F46BE #BB46BE
triadic
#7F46BE #BE7F46 #46BE7F
tetradic
#7F46BE #BE4649 #85BE46 #46BEBB
square
#7F46BE #BE4649 #85BE46 #46BEBB
split-complementary
#7F46BE #BEBB46 #49BE46
monochromatic
#432466 #613493 #7F46BE #9E73CE #BEA1DE

Accessibility & contrast

On white

5.96
#7F46BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7F46BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F46BE
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F46BE#FFFFFF#000000##FFFFFF
##7F46BE1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C2
Deuteranopia (green-blind)
#1E63BB
Tritanopia (blue-blind)
#72607C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7f46be;
/* rgb */ color: rgb(127, 70, 190);
/* oklch */ color: oklch(52.2% 0.182 302.4);
Tailwind
colors: {
  custom: {
    50: '#a87dd2',
    500: '#7f46be',
    950: '#000000',
  },
}
SCSS
$custom: #7f46be;
$custom-light: #a87dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f46be",
  "rgb": {
    "r": 127,
    "g": 70,
    "b": 190
  },
  "hsl": {
    "h": 268.5,
    "s": 48,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52213,
    "c": 0.18168,
    "h": 302.4
  },
  "luminance": 0.1261
}

Semantic roles & 50–950 ramp

primary
#7F46BE
secondary
#B1CA95
accent
#D85097
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7F46BE

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

Preview Lab → · Contrast checker → · Palette generator →

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