#7E51F2#7E51F2

#7E51F2 is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.5% C 0.228 H 290.2°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7E51F2
RGBrgb(126, 81, 242)
HSLhsl(257, 86%, 63%)
HSVhsv(257, 67%, 95%)
CMYKcmyk(47.9%, 66.5%, 0%, 5.1%)
CIE-LABlab(47.92, 55.47, -74.50)
CIE-LCHlch(47.92, 92.88, 306.67°)
OKLaboklab(57.51% 0.0786 -0.2135)
OKLCHoklch(57.51% 0.228 290.2)
XYZxyz(27.5691, 16.7302, 85.7638)
Luminance0.1673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E51F2 #C5F251
analogous
#5174F2 #7E51F2 #CE51F2
triadic
#7E51F2 #F27E51 #51F27E
tetradic
#7E51F2 #F25174 #C5F251 #51F2CE
square
#7E51F2 #F25174 #C5F251 #51F2CE
split-complementary
#7E51F2 #F2CE51 #74F251
monochromatic
#3E0EBB #5418EE #7E51F2 #A88AF6 #D2C3FB

Accessibility & contrast

On white

4.83
#7E51F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#7E51F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E51F2
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E51F2#FFFFFF#000000##FFFFFF
##7E51F21.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F7
Deuteranopia (green-blind)
#006EEF
Tritanopia (blue-blind)
#58799B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e51f2;
/* rgb */ color: rgb(126, 81, 242);
/* oklch */ color: oklch(57.5% 0.228 290.2);
Tailwind
colors: {
  custom: {
    50: '#ac85f7',
    500: '#7e51f2',
    950: '#000000',
  },
}
SCSS
$custom: #7e51f2;
$custom-light: #ac85f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e51f2",
  "rgb": {
    "r": 126,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 256.77,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57513,
    "c": 0.22757,
    "h": 290.2
  },
  "luminance": 0.16731
}

Semantic roles & 50–950 ramp

primary
#7E51F2
secondary
#DCECB3
accent
#E303A4
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E51F2

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

Preview Lab → · Contrast checker → · Palette generator →

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