#7D54E2#7D54E2

#7D54E2 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.6% C 0.205 H 291.8°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#7D54E2
RGBrgb(125, 84, 226)
HSLhsl(257, 71%, 61%)
HSVhsv(257, 63%, 89%)
CMYKcmyk(44.7%, 62.8%, 0%, 11.4%)
CIE-LABlab(47.22, 49.34, -66.62)
CIE-LCHlch(47.22, 82.90, 306.52°)
OKLaboklab(56.62% 0.0762 -0.1904)
OKLCHoklch(56.62% 0.205 291.8)
XYZxyz(25.3514, 16.1908, 73.7262)
Luminance0.1619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D54E2 #B9E254
analogous
#5472E2 #7D54E2 #C454E2
triadic
#7D54E2 #E27D54 #54E27D
tetradic
#7D54E2 #E25472 #B9E254 #54E2C4
square
#7D54E2 #E25472 #B9E254 #54E2C4
split-complementary
#7D54E2 #E2C454 #72E254
monochromatic
#421BA0 #5724D5 #7D54E2 #A588EB #CDBDF4

Accessibility & contrast

On white

4.95
#7D54E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7D54E2
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D54E2#FFFFFF#000000##FFFFFF
##7D54E21.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E6
Deuteranopia (green-blind)
#006DDF
Tritanopia (blue-blind)
#5F7593
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7d54e2;
/* rgb */ color: rgb(125, 84, 226);
/* oklch */ color: oklch(56.6% 0.205 291.8);
Tailwind
colors: {
  custom: {
    50: '#aa86ec',
    500: '#7d54e2',
    950: '#000000',
  },
}
SCSS
$custom: #7d54e2;
$custom-light: #aa86ec;
$custom-dark: #000000;
JSON
{
  "hex": "#7d54e2",
  "rgb": {
    "r": 125,
    "g": 84,
    "b": 226
  },
  "hsl": {
    "h": 257.324,
    "s": 71,
    "l": 60.784
  },
  "oklch": {
    "l": 0.56618,
    "c": 0.20508,
    "h": 291.8
  },
  "luminance": 0.16192
}

Semantic roles & 50–950 ramp

primary
#7D54E2
secondary
#D4E4AE
accent
#D3129B
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7D54E2

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

Preview Lab → · Contrast checker → · Palette generator →

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