#7A5EF2#7A5EF2

#7A5EF2 is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.0% C 0.212 H 286.7°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7A5EF2
RGBrgb(122, 94, 242)
HSLhsl(251, 85%, 66%)
HSVhsv(251, 61%, 95%)
CMYKcmyk(49.6%, 61.2%, 0%, 5.1%)
CIE-LABlab(50.16, 47.72, -70.87)
CIE-LCHlch(50.16, 85.44, 303.96°)
OKLaboklab(59.05% 0.0608 -0.203)
OKLCHoklch(59.05% 0.212 286.7)
XYZxyz(28.0510, 18.5525, 86.0901)
Luminance0.1855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5EF2 #D6F25E
analogous
#5E8CF2 #7A5EF2 #C45EF2
triadic
#7A5EF2 #F27A5E #5EF27A
tetradic
#7A5EF2 #F25E8C #D6F25E #5EF2C4
square
#7A5EF2 #F25E8C #D6F25E #5EF2C4
split-complementary
#7A5EF2 #F2C45E #8CF25E
monochromatic
#3210C6 #4B25ED #7A5EF2 #A997F7 #D8CFFB

Accessibility & contrast

On white

4.46
#7A5EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#7A5EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A5EF2
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5EF2#FFFFFF#000000##000000
##7A5EF21.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF7
Deuteranopia (green-blind)
#0073EF
Tritanopia (blue-blind)
#4E819F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7a5ef2;
/* rgb */ color: rgb(122, 94, 242);
/* oklch */ color: oklch(59.0% 0.212 286.7);
Tailwind
colors: {
  custom: {
    50: '#a98df7',
    500: '#7a5ef2',
    950: '#000000',
  },
}
SCSS
$custom: #7a5ef2;
$custom-light: #a98df7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5ef2",
  "rgb": {
    "r": 122,
    "g": 94,
    "b": 242
  },
  "hsl": {
    "h": 251.351,
    "s": 85.057,
    "l": 65.882
  },
  "oklch": {
    "l": 0.59047,
    "c": 0.21191,
    "h": 286.7
  },
  "luminance": 0.18554
}

Semantic roles & 50–950 ramp

primary
#7A5EF2
secondary
#E5EEBD
accent
#E204B8
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7A5EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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