#7A5FEF#7A5FEF

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

Color values

HEX#7A5FEF
RGBrgb(122, 95, 239)
HSLhsl(251, 82%, 65%)
HSVhsv(251, 60%, 94%)
CMYKcmyk(49%, 60.3%, 0%, 6.3%)
CIE-LABlab(50.16, 46.30, -69.19)
CIE-LCHlch(50.16, 83.26, 303.79°)
OKLaboklab(58.98% 0.06 -0.1981)
OKLCHoklch(58.98% 0.207 286.8)
XYZxyz(27.6937, 18.5527, 83.7664)
Luminance0.1855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5FEF #D4EF5F
analogous
#5F8CEF #7A5FEF #C25FEF
triadic
#7A5FEF #EF7A5F #5FEF7A
tetradic
#7A5FEF #EF5F8C #D4EF5F #5FEFC2
square
#7A5FEF #EF5F8C #D4EF5F #5FEFC2
split-complementary
#7A5FEF #EFC25F #8CEF5F
monochromatic
#3413C0 #4C27E9 #7A5FEF #A897F5 #D6CEFA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A5FEF#FFFFFF#000000##000000
##7A5FEF1.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)
#007BF4
Deuteranopia (green-blind)
#0073EC
Tritanopia (blue-blind)
#51819E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7a5fef;
/* rgb */ color: rgb(122, 95, 239);
/* oklch */ color: oklch(59.0% 0.207 286.8);
Tailwind
colors: {
  custom: {
    50: '#a98df5',
    500: '#7a5fef',
    950: '#000000',
  },
}
SCSS
$custom: #7a5fef;
$custom-light: #a98df5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5fef",
  "rgb": {
    "r": 122,
    "g": 95,
    "b": 239
  },
  "hsl": {
    "h": 251.25,
    "s": 81.818,
    "l": 65.49
  },
  "oklch": {
    "l": 0.5898,
    "c": 0.20694,
    "h": 286.8
  },
  "luminance": 0.18554
}

Semantic roles & 50–950 ramp

primary
#7A5FEF
secondary
#E4EDBD
accent
#DE07B6
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7A5FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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