#7D51F2#7D51F2

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

Color values

HEX#7D51F2
RGBrgb(125, 81, 242)
HSLhsl(256, 86%, 63%)
HSVhsv(256, 67%, 95%)
CMYKcmyk(48.3%, 66.5%, 0%, 5.1%)
CIE-LABlab(47.82, 55.30, -74.66)
CIE-LCHlch(47.82, 92.91, 306.52°)
OKLaboklab(57.42% 0.0773 -0.2141)
OKLCHoklch(57.42% 0.228 289.9)
XYZxyz(27.4223, 16.6545, 85.7569)
Luminance0.1666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D51F2 #C6F251
analogous
#5175F2 #7D51F2 #CE51F2
triadic
#7D51F2 #F27D51 #51F27D
tetradic
#7D51F2 #F25175 #C6F251 #51F2CE
square
#7D51F2 #F25175 #C6F251 #51F2CE
split-complementary
#7D51F2 #F2CE51 #75F251
monochromatic
#3D0EBB #5218EE #7D51F2 #A88AF6 #D2C3FB

Accessibility & contrast

On white

4.85
#7D51F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#7D51F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D51F2
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D51F2#FFFFFF#000000##FFFFFF
##7D51F21.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d51f2;
/* rgb */ color: rgb(125, 81, 242);
/* oklch */ color: oklch(57.4% 0.228 289.9);
Tailwind
colors: {
  custom: {
    50: '#ac85f7',
    500: '#7d51f2',
    950: '#000000',
  },
}
SCSS
$custom: #7d51f2;
$custom-light: #ac85f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d51f2",
  "rgb": {
    "r": 125,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 256.398,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57421,
    "c": 0.22759,
    "h": 289.9
  },
  "luminance": 0.16656
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D51F2

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

Preview Lab → · Contrast checker → · Palette generator →

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