#7D54F2#7D54F2

#7D54F2 is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.8% C 0.224 H 289.4°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7D54F2
RGBrgb(125, 84, 242)
HSLhsl(256, 86%, 64%)
HSVhsv(256, 65%, 95%)
CMYKcmyk(48.3%, 65.3%, 0%, 5.1%)
CIE-LABlab(48.40, 53.72, -73.72)
CIE-LCHlch(48.40, 91.22, 306.08°)
OKLaboklab(57.84% 0.0745 -0.2113)
OKLCHoklch(57.84% 0.224 289.4)
XYZxyz(27.6502, 17.1103, 85.8329)
Luminance0.1711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D54F2 #C9F254
analogous
#547AF2 #7D54F2 #CC54F2
triadic
#7D54F2 #F27D54 #54F27D
tetradic
#7D54F2 #F2547A #C9F254 #54F2CC
square
#7D54F2 #F2547A #C9F254 #54F2CC
split-complementary
#7D54F2 #F2CC54 #7AF254
monochromatic
#3C0EBD #521BEE #7D54F2 #A88DF6 #D3C6FB

Accessibility & contrast

On white

4.75
#7D54F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#7D54F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D54F2
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D54F2#FFFFFF#000000##FFFFFF
##7D54F21.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F7
Deuteranopia (green-blind)
#006FEF
Tritanopia (blue-blind)
#557B9C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7d54f2;
/* rgb */ color: rgb(125, 84, 242);
/* oklch */ color: oklch(57.8% 0.224 289.4);
Tailwind
colors: {
  custom: {
    50: '#ac87f7',
    500: '#7d54f2',
    950: '#000000',
  },
}
SCSS
$custom: #7d54f2;
$custom-light: #ac87f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d54f2",
  "rgb": {
    "r": 125,
    "g": 84,
    "b": 242
  },
  "hsl": {
    "h": 255.57,
    "s": 85.87,
    "l": 63.922
  },
  "oklch": {
    "l": 0.57836,
    "c": 0.22404,
    "h": 289.4
  },
  "luminance": 0.17111
}

Semantic roles & 50–950 ramp

primary
#7D54F2
secondary
#DEEDB5
accent
#E203A8
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7D54F2

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

Preview Lab → · Contrast checker → · Palette generator →

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