#7D51EA#7D51EA

#7D51EA is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.8% C 0.218 H 291.0°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7D51EA
RGBrgb(125, 81, 234)
HSLhsl(257, 78%, 62%)
HSVhsv(257, 65%, 92%)
CMYKcmyk(46.6%, 65.4%, 0%, 8.2%)
CIE-LABlab(47.22, 53.12, -71.15)
CIE-LCHlch(47.22, 88.79, 306.74°)
OKLaboklab(56.8% 0.0784 -0.2037)
OKLCHoklch(56.8% 0.218 291)
XYZxyz(26.2470, 16.1844, 79.5669)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D51EA #BEEA51
analogous
#5172EA #7D51EA #CA51EA
triadic
#7D51EA #EA7D51 #51EA7D
tetradic
#7D51EA #EA5172 #BEEA51 #51EACA
square
#7D51EA #EA5172 #BEEA51 #51EACA
split-complementary
#7D51EA #EACA51 #72EA51
monochromatic
#4015AC #551BE2 #7D51EA #A688F1 #CFBEF7

Accessibility & contrast

On white

4.96
#7D51EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#7D51EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D51EA
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D51EA#FFFFFF#000000##FFFFFF
##7D51EA1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EF
Deuteranopia (green-blind)
#006DE7
Tritanopia (blue-blind)
#5B7697
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7d51ea;
/* rgb */ color: rgb(125, 81, 234);
/* oklch */ color: oklch(56.8% 0.218 291.0);
Tailwind
colors: {
  custom: {
    50: '#ab84f2',
    500: '#7d51ea',
    950: '#000000',
  },
}
SCSS
$custom: #7d51ea;
$custom-light: #ab84f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d51ea",
  "rgb": {
    "r": 125,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 257.255,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.56796,
    "c": 0.21829,
    "h": 291
  },
  "luminance": 0.16185
}

Semantic roles & 50–950 ramp

primary
#7D51EA
secondary
#D7E8AF
accent
#DB0B9F
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7D51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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