#7F46BC#7F46BC

#7F46BC is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.1% C 0.179 H 302.9°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#7F46BC
RGBrgb(127, 70, 188)
HSLhsl(269, 47%, 51%)
HSVhsv(269, 63%, 74%)
CMYKcmyk(32.4%, 62.8%, 0%, 26.3%)
CIE-LABlab(42.04, 47.33, -53.13)
CIE-LCHlch(42.04, 71.15, 311.69°)
OKLaboklab(52.07% 0.0974 -0.1507)
OKLCHoklch(52.07% 0.179 302.9)
XYZxyz(20.0176, 12.5232, 48.9298)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F46BC #83BC46
analogous
#4648BC #7F46BC #BA46BC
triadic
#7F46BC #BC7F46 #46BC7F
tetradic
#7F46BC #BC4648 #83BC46 #46BCBA
square
#7F46BC #BC4648 #83BC46 #46BCBA
split-complementary
#7F46BC #BCBA46 #48BC46
monochromatic
#432464 #613490 #7F46BC #9E73CC #BDA0DD

Accessibility & contrast

On white

5.99
#7F46BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7F46BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F46BC
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F46BC#FFFFFF#000000##FFFFFF
##7F46BC1.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C0
Deuteranopia (green-blind)
#2263B9
Tritanopia (blue-blind)
#735F7A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7f46bc;
/* rgb */ color: rgb(127, 70, 188);
/* oklch */ color: oklch(52.1% 0.179 302.9);
Tailwind
colors: {
  custom: {
    50: '#a87dd1',
    500: '#7f46bc',
    950: '#000000',
  },
}
SCSS
$custom: #7f46bc;
$custom-light: #a87dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f46bc",
  "rgb": {
    "r": 127,
    "g": 70,
    "b": 188
  },
  "hsl": {
    "h": 268.983,
    "s": 46.825,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52074,
    "c": 0.17939,
    "h": 302.9
  },
  "luminance": 0.12523
}

Semantic roles & 50–950 ramp

primary
#7F46BC
secondary
#B0C995
accent
#D65196
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7F46BC

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

Preview Lab → · Contrast checker → · Palette generator →

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