#7F46BF#7F46BF

#7F46BF is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.3% C 0.183 H 302.1°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#7F46BF
RGBrgb(127, 70, 191)
HSLhsl(268, 49%, 51%)
HSVhsv(268, 63%, 75%)
CMYKcmyk(33.5%, 63.4%, 0%, 25.1%)
CIE-LABlab(42.24, 48.07, -54.56)
CIE-LCHlch(42.24, 72.71, 311.38°)
OKLaboklab(52.28% 0.0972 -0.1549)
OKLCHoklch(52.28% 0.183 302.1)
XYZxyz(20.3443, 12.6539, 50.6508)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F46BF #86BF46
analogous
#4649BF #7F46BF #BB46BF
triadic
#7F46BF #BF7F46 #46BF7F
tetradic
#7F46BF #BF4649 #86BF46 #46BFBB
square
#7F46BF #BF4649 #86BF46 #46BFBB
split-complementary
#7F46BF #BFBB46 #49BF46
monochromatic
#432467 #613394 #7F46BF #9E73CF #BEA1DE

Accessibility & contrast

On white

5.95
#7F46BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7F46BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F46BF
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F46BF#FFFFFF#000000##FFFFFF
##7F46BF1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C3
Deuteranopia (green-blind)
#1C63BC
Tritanopia (blue-blind)
#72607C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7f46bf;
/* rgb */ color: rgb(127, 70, 191);
/* oklch */ color: oklch(52.3% 0.183 302.1);
Tailwind
colors: {
  custom: {
    50: '#a87dd3',
    500: '#7f46bf',
    950: '#000000',
  },
}
SCSS
$custom: #7f46bf;
$custom-light: #a87dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f46bf",
  "rgb": {
    "r": 127,
    "g": 70,
    "b": 191
  },
  "hsl": {
    "h": 268.264,
    "s": 48.594,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52283,
    "c": 0.18283,
    "h": 302.1
  },
  "luminance": 0.12654
}

Semantic roles & 50–950 ramp

primary
#7F46BF
secondary
#B2CB96
accent
#D85098
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7F46BF

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

Preview Lab → · Contrast checker → · Palette generator →

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