#7A51F2#7A51F2

#7A51F2 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.1% C 0.228 H 288.8°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7A51F2
RGBrgb(122, 81, 242)
HSLhsl(255, 86%, 63%)
HSVhsv(255, 67%, 95%)
CMYKcmyk(49.6%, 66.5%, 0%, 5.1%)
CIE-LABlab(47.54, 54.78, -75.14)
CIE-LCHlch(47.54, 92.99, 306.10°)
OKLaboklab(57.15% 0.0733 -0.2155)
OKLCHoklch(57.15% 0.228 288.8)
XYZxyz(26.9908, 16.4320, 85.7367)
Luminance0.1643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A51F2 #C9F251
analogous
#5178F2 #7A51F2 #CB51F2
triadic
#7A51F2 #F27A51 #51F27A
tetradic
#7A51F2 #F25178 #C9F251 #51F2CB
square
#7A51F2 #F25178 #C9F251 #51F2CB
split-complementary
#7A51F2 #F2CB51 #78F251
monochromatic
#3A0EBB #4E18EE #7A51F2 #A68AF6 #D1C3FB

Accessibility & contrast

On white

4.90
#7A51F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#7A51F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A51F2
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A51F2#FFFFFF#000000##FFFFFF
##7A51F21.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F7
Deuteranopia (green-blind)
#006DEF
Tritanopia (blue-blind)
#50799B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7a51f2;
/* rgb */ color: rgb(122, 81, 242);
/* oklch */ color: oklch(57.1% 0.228 288.8);
Tailwind
colors: {
  custom: {
    50: '#aa84f7',
    500: '#7a51f2',
    950: '#000000',
  },
}
SCSS
$custom: #7a51f2;
$custom-light: #aa84f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a51f2",
  "rgb": {
    "r": 122,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 255.28,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57148,
    "c": 0.22767,
    "h": 288.8
  },
  "luminance": 0.16433
}

Semantic roles & 50–950 ramp

primary
#7A51F2
secondary
#DDECB3
accent
#E303AA
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7A51F2

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

Preview Lab → · Contrast checker → · Palette generator →

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