#7A56F2#7A56F2

#7A56F2 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 57.9% C 0.222 H 288.0°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#7A56F2
RGBrgb(122, 86, 242)
HSLhsl(254, 86%, 64%)
HSVhsv(254, 64%, 95%)
CMYKcmyk(49.6%, 64.5%, 0%, 5.1%)
CIE-LABlab(48.51, 52.12, -73.55)
CIE-LCHlch(48.51, 90.14, 305.33°)
OKLaboklab(57.85% 0.0686 -0.2109)
OKLCHoklch(57.85% 0.222 288)
XYZxyz(27.3762, 17.2027, 85.8652)
Luminance0.1720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A56F2 #CEF256
analogous
#5680F2 #7A56F2 #C856F2
triadic
#7A56F2 #F27A56 #56F27A
tetradic
#7A56F2 #F25680 #CEF256 #56F2C8
square
#7A56F2 #F25680 #CEF256 #56F2C8
split-complementary
#7A56F2 #F2C856 #80F256
monochromatic
#370FBF #4D1DEE #7A56F2 #A78FF6 #D3C8FB

Accessibility & contrast

On white

4.73
#7A56F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#7A56F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A56F2
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A56F2#FFFFFF#000000##FFFFFF
##7A56F21.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F7
Deuteranopia (green-blind)
#006FEF
Tritanopia (blue-blind)
#4F7C9D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7a56f2;
/* rgb */ color: rgb(122, 86, 242);
/* oklch */ color: oklch(57.9% 0.222 288.0);
Tailwind
colors: {
  custom: {
    50: '#aa88f7',
    500: '#7a56f2',
    950: '#000000',
  },
}
SCSS
$custom: #7a56f2;
$custom-light: #aa88f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a56f2",
  "rgb": {
    "r": 122,
    "g": 86,
    "b": 242
  },
  "hsl": {
    "h": 253.846,
    "s": 85.714,
    "l": 64.314
  },
  "oklch": {
    "l": 0.57853,
    "c": 0.22176,
    "h": 288
  },
  "luminance": 0.17204
}

Semantic roles & 50–950 ramp

primary
#7A56F2
secondary
#E0EDB7
accent
#E203AF
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7A56F2

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

Preview Lab → · Contrast checker → · Palette generator →

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