#7F46D9#7F46D9

#7F46D9 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.2% C 0.212 H 296.4°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7F46D9
RGBrgb(127, 70, 217)
HSLhsl(263, 66%, 56%)
HSVhsv(263, 68%, 85%)
CMYKcmyk(41.5%, 67.7%, 0%, 14.9%)
CIE-LABlab(44.09, 54.64, -66.57)
CIE-LCHlch(44.09, 86.13, 309.38°)
OKLaboklab(54.2% 0.0943 -0.1902)
OKLCHoklch(54.2% 0.212 296.4)
XYZxyz(23.4637, 13.9016, 67.0792)
Luminance0.1390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F46D9 #A0D946
analogous
#4657D9 #7F46D9 #C846D9
triadic
#7F46D9 #D97F46 #46D97F
tetradic
#7F46D9 #D94657 #A0D946 #46D9C8
square
#7F46D9 #D94657 #A0D946 #46D9C8
split-complementary
#7F46D9 #D9C846 #57D946
monochromatic
#461C89 #6026BB #7F46D9 #A279E3 #C5ACEE

Accessibility & contrast

On white

5.55
#7F46D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#7F46D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F46D9
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F46D9#FFFFFF#000000##FFFFFF
##7F46D91.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DD
Deuteranopia (green-blind)
#0066D6
Tritanopia (blue-blind)
#686A8A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7f46d9;
/* rgb */ color: rgb(127, 70, 217);
/* oklch */ color: oklch(54.2% 0.212 296.4);
Tailwind
colors: {
  custom: {
    50: '#ab7de6',
    500: '#7f46d9',
    950: '#000000',
  },
}
SCSS
$custom: #7f46d9;
$custom-light: #ab7de6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f46d9",
  "rgb": {
    "r": 127,
    "g": 70,
    "b": 217
  },
  "hsl": {
    "h": 263.265,
    "s": 65.919,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54203,
    "c": 0.21228,
    "h": 296.4
  },
  "luminance": 0.13902
}

Semantic roles & 50–950 ramp

primary
#7F46D9
secondary
#C4DC9F
accent
#E93FA7
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7F46D9

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

Preview Lab → · Contrast checker → · Palette generator →

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