#7A5FFB#7A5FFB

#7A5FFB is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 59.9% C 0.222 H 285.5°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#7A5FFB
RGBrgb(122, 95, 251)
HSLhsl(250, 95%, 68%)
HSVhsv(250, 62%, 98%)
CMYKcmyk(51.4%, 62.2%, 0%, 1.6%)
CIE-LABlab(51.02, 49.75, -74.49)
CIE-LCHlch(51.02, 89.58, 303.74°)
OKLaboklab(59.88% 0.0592 -0.2136)
OKLCHoklch(59.88% 0.222 285.5)
XYZxyz(29.5256, 19.2855, 93.4148)
Luminance0.1929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5FFB #E0FB5F
analogous
#5F92FB #7A5FFB #C85FFB
triadic
#7A5FFB #FB7A5F #5FFB7A
tetradic
#7A5FFB #FB5F92 #E0FB5F #5FFBC8
square
#7A5FFB #FB5F92 #E0FB5F #5FFBC8
split-complementary
#7A5FFB #FBC85F #92FB5F
monochromatic
#2A05DA #4823FA #7A5FFB #AC9BFC #DDD6FE

Accessibility & contrast

On white

4.32
#7A5FFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#7A5FFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A5FFB
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5FFB#FFFFFF#000000##000000
##7A5FFB1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFF
Deuteranopia (green-blind)
#0075F8
Tritanopia (blue-blind)
#4785A4
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7a5ffb;
/* rgb */ color: rgb(122, 95, 251);
/* oklch */ color: oklch(59.9% 0.222 285.5);
Tailwind
colors: {
  custom: {
    50: '#aa8efe',
    500: '#7a5ffb',
    950: '#000000',
  },
}
SCSS
$custom: #7a5ffb;
$custom-light: #aa8efe;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5ffb",
  "rgb": {
    "r": 122,
    "g": 95,
    "b": 251
  },
  "hsl": {
    "h": 250.385,
    "s": 95.122,
    "l": 67.843
  },
  "oklch": {
    "l": 0.59878,
    "c": 0.22169,
    "h": 285.5
  },
  "luminance": 0.19287
}

Semantic roles & 50–950 ramp

primary
#7A5FFB
secondary
#EBF3C3
accent
#E600BE
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7A5FFB

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

Preview Lab → · Contrast checker → · Palette generator →

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