#7A5CEF#7A5CEF

#7A5CEF is a mid, highly saturated violet. Relative luminance 0.180; OKLCH L 58.5% C 0.211 H 287.4°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7A5CEF
RGBrgb(122, 92, 239)
HSLhsl(252, 82%, 65%)
HSVhsv(252, 62%, 94%)
CMYKcmyk(49%, 61.5%, 0%, 6.3%)
CIE-LABlab(49.52, 47.99, -70.22)
CIE-LCHlch(49.52, 85.05, 304.35°)
OKLaboklab(58.52% 0.063 -0.2011)
OKLCHoklch(58.52% 0.211 287.4)
XYZxyz(27.4286, 18.0226, 83.6781)
Luminance0.1802 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5CEF #D1EF5C
analogous
#5C87EF #7A5CEF #C45CEF
triadic
#7A5CEF #EF7A5C #5CEF7A
tetradic
#7A5CEF #EF5C87 #D1EF5C #5CEFC4
square
#7A5CEF #EF5C87 #D1EF5C #5CEFC4
split-complementary
#7A5CEF #EFC45C #87EF5C
monochromatic
#3613BE #4D24EA #7A5CEF #A794F4 #D5CBFA

Accessibility & contrast

On white

4.56
#7A5CEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#7A5CEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A5CEF
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5CEF#FFFFFF#000000##000000
##7A5CEF1.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F4
Deuteranopia (green-blind)
#0072EC
Tritanopia (blue-blind)
#517F9D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7a5cef;
/* rgb */ color: rgb(122, 92, 239);
/* oklch */ color: oklch(58.5% 0.211 287.4);
Tailwind
colors: {
  custom: {
    50: '#a98bf5',
    500: '#7a5cef',
    950: '#000000',
  },
}
SCSS
$custom: #7a5cef;
$custom-light: #a98bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5cef",
  "rgb": {
    "r": 122,
    "g": 92,
    "b": 239
  },
  "hsl": {
    "h": 252.245,
    "s": 82.123,
    "l": 64.902
  },
  "oklch": {
    "l": 0.58516,
    "c": 0.21074,
    "h": 287.4
  },
  "luminance": 0.18024
}

Semantic roles & 50–950 ramp

primary
#7A5CEF
secondary
#E2ECBA
accent
#DF07B3
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7A5CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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