#7A4FEB#7A4FEB

#7A4FEB is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.3% C 0.222 H 290.1°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#7A4FEB
RGBrgb(122, 79, 235)
HSLhsl(257, 80%, 62%)
HSVhsv(257, 66%, 92%)
CMYKcmyk(48.1%, 66.4%, 0%, 7.8%)
CIE-LABlab(46.61, 53.91, -72.71)
CIE-LCHlch(46.61, 90.51, 306.55°)
OKLaboklab(56.32% 0.0761 -0.2084)
OKLCHoklch(56.32% 0.222 290.1)
XYZxyz(25.8131, 15.7267, 80.2566)
Luminance0.1573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4FEB #C0EB4F
analogous
#4F72EB #7A4FEB #C84FEB
triadic
#7A4FEB #EB7A4F #4FEB7A
tetradic
#7A4FEB #EB4F72 #C0EB4F #4FEBC8
square
#7A4FEB #EB4F72 #C0EB4F #4FEBC8
split-complementary
#7A4FEB #EBC84F #72EB4F
monochromatic
#3E14AC #511AE3 #7A4FEB #A486F1 #CDBDF7

Accessibility & contrast

On white

5.07
#7A4FEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#7A4FEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A4FEB
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A4FEB#FFFFFF#000000##FFFFFF
##7A4FEB1.005.074.155.07
#FFFFFF5.071.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F0
Deuteranopia (green-blind)
#006BE8
Tritanopia (blue-blind)
#557697
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7a4feb;
/* rgb */ color: rgb(122, 79, 235);
/* oklch */ color: oklch(56.3% 0.222 290.1);
Tailwind
colors: {
  custom: {
    50: '#a983f2',
    500: '#7a4feb',
    950: '#000000',
  },
}
SCSS
$custom: #7a4feb;
$custom-light: #a983f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4feb",
  "rgb": {
    "r": 122,
    "g": 79,
    "b": 235
  },
  "hsl": {
    "h": 256.538,
    "s": 79.592,
    "l": 61.569
  },
  "oklch": {
    "l": 0.56318,
    "c": 0.22188,
    "h": 290.1
  },
  "luminance": 0.15728
}

Semantic roles & 50–950 ramp

primary
#7A4FEB
secondary
#D8E8AE
accent
#DC0AA2
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7A4FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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