#7A5FED#7A5FED

#7A5FED is a mid, highly saturated violet. Relative luminance 0.184; OKLCH L 58.8% C 0.204 H 287.1°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#7A5FED
RGBrgb(122, 95, 237)
HSLhsl(251, 80%, 65%)
HSVhsv(251, 60%, 93%)
CMYKcmyk(48.5%, 59.9%, 0%, 7.1%)
CIE-LABlab(50.02, 45.73, -68.30)
CIE-LCHlch(50.02, 82.19, 303.81°)
OKLaboklab(58.83% 0.0601 -0.1954)
OKLCHoklch(58.83% 0.204 287.1)
XYZxyz(27.3998, 18.4352, 82.2190)
Luminance0.1844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5FED #D2ED5F
analogous
#5F8BED #7A5FED #C15FED
triadic
#7A5FED #ED7A5F #5FED7A
tetradic
#7A5FED #ED5F8B #D2ED5F #5FEDC1
square
#7A5FED #ED5F8B #D2ED5F #5FEDC1
split-complementary
#7A5FED #EDC15F #8BED5F
monochromatic
#3515BC #4C28E7 #7A5FED #A896F3 #D5CDF9

Accessibility & contrast

On white

4.48
#7A5FED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#7A5FED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A5FED
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5FED#FFFFFF#000000##000000
##7A5FED1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF2
Deuteranopia (green-blind)
#0073EA
Tritanopia (blue-blind)
#52809D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7a5fed;
/* rgb */ color: rgb(122, 95, 237);
/* oklch */ color: oklch(58.8% 0.204 287.1);
Tailwind
colors: {
  custom: {
    50: '#a98df4',
    500: '#7a5fed',
    950: '#000000',
  },
}
SCSS
$custom: #7a5fed;
$custom-light: #a98df4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5fed",
  "rgb": {
    "r": 122,
    "g": 95,
    "b": 237
  },
  "hsl": {
    "h": 251.408,
    "s": 79.775,
    "l": 65.098
  },
  "oklch": {
    "l": 0.58834,
    "c": 0.20446,
    "h": 287.1
  },
  "luminance": 0.18436
}

Semantic roles & 50–950 ramp

primary
#7A5FED
secondary
#E3ECBC
accent
#DC09B4
background
#FAF8FF
surface
#F5F0FE
border
#CFCBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7A5FED

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

Preview Lab → · Contrast checker → · Palette generator →

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