#7A5DF4#7A5DF4

#7A5DF4 is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.0% C 0.216 H 286.6°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7A5DF4
RGBrgb(122, 93, 244)
HSLhsl(252, 87%, 66%)
HSVhsv(252, 62%, 96%)
CMYKcmyk(50%, 61.9%, 0%, 4.3%)
CIE-LABlab(50.09, 48.85, -72.10)
CIE-LCHlch(50.09, 87.09, 304.12°)
OKLaboklab(59.04% 0.0617 -0.2066)
OKLCHoklch(59.04% 0.216 286.6)
XYZxyz(28.2647, 18.4966, 87.6513)
Luminance0.1850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5DF4 #D7F45D
analogous
#5D8BF4 #7A5DF4 #C55DF4
triadic
#7A5DF4 #F47A5D #5DF47A
tetradic
#7A5DF4 #F45D8B #D7F45D #5DF4C5
square
#7A5DF4 #F45D8B #D7F45D #5DF4C5
split-complementary
#7A5DF4 #F4C55D #8BF45D
monochromatic
#320EC9 #4B24F0 #7A5DF4 #A996F8 #D8D0FC

Accessibility & contrast

On white

4.47
#7A5DF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#7A5DF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A5DF4
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5DF4#FFFFFF#000000##000000
##7A5DF41.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF9
Deuteranopia (green-blind)
#0073F1
Tritanopia (blue-blind)
#4D81A0
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7a5df4;
/* rgb */ color: rgb(122, 93, 244);
/* oklch */ color: oklch(59.0% 0.216 286.6);
Tailwind
colors: {
  custom: {
    50: '#a98cf9',
    500: '#7a5df4',
    950: '#000000',
  },
}
SCSS
$custom: #7a5df4;
$custom-light: #a98cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5df4",
  "rgb": {
    "r": 122,
    "g": 93,
    "b": 244
  },
  "hsl": {
    "h": 251.523,
    "s": 87.283,
    "l": 66.078
  },
  "oklch": {
    "l": 0.59044,
    "c": 0.21561,
    "h": 286.6
  },
  "luminance": 0.18498
}

Semantic roles & 50–950 ramp

primary
#7A5DF4
secondary
#E6EFBE
accent
#E402B8
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7A5DF4

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

Preview Lab → · Contrast checker → · Palette generator →

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