#7C51F2#7C51F2

#7C51F2 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.3% C 0.228 H 289.5°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7C51F2
RGBrgb(124, 81, 242)
HSLhsl(256, 86%, 63%)
HSVhsv(256, 67%, 95%)
CMYKcmyk(48.8%, 66.5%, 0%, 5.1%)
CIE-LABlab(47.73, 55.12, -74.82)
CIE-LCHlch(47.73, 92.94, 306.38°)
OKLaboklab(57.33% 0.076 -0.2146)
OKLCHoklch(57.33% 0.228 289.5)
XYZxyz(27.2770, 16.5796, 85.7501)
Luminance0.1658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C51F2 #C7F251
analogous
#5176F2 #7C51F2 #CC51F2
triadic
#7C51F2 #F27C51 #51F27C
tetradic
#7C51F2 #F25176 #C7F251 #51F2CC
square
#7C51F2 #F25176 #C7F251 #51F2CC
split-complementary
#7C51F2 #F2CC51 #76F251
monochromatic
#3C0EBB #5118EE #7C51F2 #A78AF6 #D2C3FB

Accessibility & contrast

On white

4.87
#7C51F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#7C51F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C51F2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C51F2#FFFFFF#000000##FFFFFF
##7C51F21.004.874.324.87
#FFFFFF4.871.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c51f2;
/* rgb */ color: rgb(124, 81, 242);
/* oklch */ color: oklch(57.3% 0.228 289.5);
Tailwind
colors: {
  custom: {
    50: '#ab85f7',
    500: '#7c51f2',
    950: '#000000',
  },
}
SCSS
$custom: #7c51f2;
$custom-light: #ab85f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c51f2",
  "rgb": {
    "r": 124,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 256.025,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57329,
    "c": 0.22761,
    "h": 289.5
  },
  "luminance": 0.16581
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C51F2

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

Preview Lab → · Contrast checker → · Palette generator →

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