#7946DB#7946DB

#7946DB is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 53.7% C 0.214 H 293.6°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#7946DB
RGBrgb(121, 70, 219)
HSLhsl(261, 67%, 57%)
HSVhsv(261, 68%, 86%)
CMYKcmyk(44.7%, 68%, 0%, 14.1%)
CIE-LABlab(43.59, 54.07, -68.55)
CIE-LCHlch(43.59, 87.31, 308.26°)
OKLaboklab(53.75% 0.0857 -0.1962)
OKLCHoklch(53.75% 0.214 293.6)
XYZxyz(22.8580, 13.5591, 68.4169)
Luminance0.1356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7946DB #A8DB46
analogous
#465EDB #7946DB #C446DB
triadic
#7946DB #DB7946 #46DB79
tetradic
#7946DB #DB465E #A8DB46 #46DBC4
square
#7946DB #DB465E #A8DB46 #46DBC4
split-complementary
#7946DB #DBC446 #5EDB46
monochromatic
#421B8B #5A25BF #7946DB #9E79E5 #C3ACEF

Accessibility & contrast

On white

5.66
#7946DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#7946DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7946DB
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7946DB#FFFFFF#000000##FFFFFF
##7946DB1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DF
Deuteranopia (green-blind)
#0064D8
Tritanopia (blue-blind)
#5D6B8B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7946db;
/* rgb */ color: rgb(121, 70, 219);
/* oklch */ color: oklch(53.7% 0.214 293.6);
Tailwind
colors: {
  custom: {
    50: '#a77de7',
    500: '#7946db',
    950: '#000000',
  },
}
SCSS
$custom: #7946db;
$custom-light: #a77de7;
$custom-dark: #000000;
JSON
{
  "hex": "#7946db",
  "rgb": {
    "r": 121,
    "g": 70,
    "b": 219
  },
  "hsl": {
    "h": 260.537,
    "s": 67.421,
    "l": 56.667
  },
  "oklch": {
    "l": 0.53746,
    "c": 0.21412,
    "h": 293.6
  },
  "luminance": 0.1356
}

Semantic roles & 50–950 ramp

primary
#7946DB
secondary
#C8DDA0
accent
#EA3DAF
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #7946DB

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

Preview Lab → · Contrast checker → · Palette generator →

#7946DB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva