#7F46DB#7F46DB

#7F46DB is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.4% C 0.215 H 296.0°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7F46DB
RGBrgb(127, 70, 219)
HSLhsl(263, 67%, 57%)
HSVhsv(263, 68%, 86%)
CMYKcmyk(42%, 68%, 0%, 14.1%)
CIE-LABlab(44.24, 55.16, -67.47)
CIE-LCHlch(44.24, 87.15, 309.26°)
OKLaboklab(54.36% 0.094 -0.1928)
OKLCHoklch(54.36% 0.215 296)
XYZxyz(23.7254, 14.0063, 68.4576)
Luminance0.1401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F46DB #A2DB46
analogous
#4658DB #7F46DB #CA46DB
triadic
#7F46DB #DB7F46 #46DB7F
tetradic
#7F46DB #DB4658 #A2DB46 #46DBCA
square
#7F46DB #DB4658 #A2DB46 #46DBCA
split-complementary
#7F46DB #DBCA46 #58DB46
monochromatic
#461B8B #6025BF #7F46DB #A279E5 #C6ACEF

Accessibility & contrast

On white

5.52
#7F46DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#7F46DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F46DB
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F46DB#FFFFFF#000000##FFFFFF
##7F46DB1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADF
Deuteranopia (green-blind)
#0066D8
Tritanopia (blue-blind)
#676A8B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7f46db;
/* rgb */ color: rgb(127, 70, 219);
/* oklch */ color: oklch(54.4% 0.215 296.0);
Tailwind
colors: {
  custom: {
    50: '#ab7de7',
    500: '#7f46db',
    950: '#000000',
  },
}
SCSS
$custom: #7f46db;
$custom-light: #ab7de7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f46db",
  "rgb": {
    "r": 127,
    "g": 70,
    "b": 219
  },
  "hsl": {
    "h": 262.953,
    "s": 67.421,
    "l": 56.667
  },
  "oklch": {
    "l": 0.54357,
    "c": 0.21452,
    "h": 296
  },
  "luminance": 0.14007
}

Semantic roles & 50–950 ramp

primary
#7F46DB
secondary
#C6DDA0
accent
#EA3DA8
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7F46DB

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

Preview Lab → · Contrast checker → · Palette generator →

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