#7F46E8#7F46E8

#7F46E8 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.4% C 0.229 H 293.6°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7F46E8
RGBrgb(127, 70, 232)
HSLhsl(261, 78%, 59%)
HSVhsv(261, 70%, 91%)
CMYKcmyk(45.3%, 69.8%, 0%, 9%)
CIE-LABlab(45.25, 58.51, -73.23)
CIE-LCHlch(45.25, 93.73, 308.63°)
OKLaboklab(55.39% 0.0918 -0.2097)
OKLCHoklch(55.39% 0.229 293.6)
XYZxyz(25.5041, 14.7178, 77.8253)
Luminance0.1472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F46E8 #AFE846
analogous
#465EE8 #7F46E8 #D046E8
triadic
#7F46E8 #E87F46 #46E87F
tetradic
#7F46E8 #E8465E #AFE846 #46E8D0
square
#7F46E8 #E8465E #AFE846 #46E8D0
split-complementary
#7F46E8 #E8D046 #5EE846
monochromatic
#4514A0 #5D1BD6 #7F46E8 #A57CEF #CAB3F6

Accessibility & contrast

On white

5.32
#7F46E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#7F46E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F46E8
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F46E8#FFFFFF#000000##FFFFFF
##7F46E81.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DED
Deuteranopia (green-blind)
#0068E5
Tritanopia (blue-blind)
#606F92
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7f46e8;
/* rgb */ color: rgb(127, 70, 232);
/* oklch */ color: oklch(55.4% 0.229 293.6);
Tailwind
colors: {
  custom: {
    50: '#ac7ef0',
    500: '#7f46e8',
    950: '#000000',
  },
}
SCSS
$custom: #7f46e8;
$custom-light: #ac7ef0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f46e8",
  "rgb": {
    "r": 127,
    "g": 70,
    "b": 232
  },
  "hsl": {
    "h": 261.111,
    "s": 77.885,
    "l": 59.216
  },
  "oklch": {
    "l": 0.55385,
    "c": 0.22894,
    "h": 293.6
  },
  "luminance": 0.14719
}

Semantic roles & 50–950 ramp

primary
#7F46E8
secondary
#CEE5A5
accent
#F433B0
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A17
muted
#807C85

Preview Lab

Preview with #7F46E8

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

Preview Lab → · Contrast checker → · Palette generator →

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