#7E54B2#7E54B2

#7E54B2 is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.4% C 0.146 H 302.4°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#7E54B2
RGBrgb(126, 84, 178)
HSLhsl(267, 38%, 51%)
HSVhsv(267, 53%, 70%)
CMYKcmyk(29.2%, 52.8%, 0%, 30.2%)
CIE-LABlab(44.22, 36.88, -43.78)
CIE-LCHlch(44.22, 57.24, 310.11°)
OKLaboklab(53.45% 0.0781 -0.1233)
OKLCHoklch(53.45% 0.146 302.4)
XYZxyz(19.8086, 13.9906, 43.7677)
Luminance0.1399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E54B2 #88B254
analogous
#5459B2 #7E54B2 #AD54B2
triadic
#7E54B2 #B27E54 #54B27E
tetradic
#7E54B2 #B25459 #88B254 #54B2AD
square
#7E54B2 #B25459 #88B254 #54B2AD
split-complementary
#7E54B2 #B2AD54 #59B254
monochromatic
#432B60 #603E8A #7E54B2 #9E7EC5 #BEA8D8

Accessibility & contrast

On white

5.53
#7E54B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#7E54B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E54B2
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E54B2#FFFFFF#000000##FFFFFF
##7E54B21.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3468B5
Deuteranopia (green-blind)
#4068B0
Tritanopia (blue-blind)
#74667B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e54b2;
/* rgb */ color: rgb(126, 84, 178);
/* oklch */ color: oklch(53.4% 0.146 302.4);
Tailwind
colors: {
  custom: {
    50: '#a685c9',
    500: '#7e54b2',
    950: '#000000',
  },
}
SCSS
$custom: #7e54b2;
$custom-light: #a685c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e54b2",
  "rgb": {
    "r": 126,
    "g": 84,
    "b": 178
  },
  "hsl": {
    "h": 266.809,
    "s": 37.903,
    "l": 51.373
  },
  "oklch": {
    "l": 0.53449,
    "c": 0.14597,
    "h": 302.4
  },
  "luminance": 0.13991
}

Semantic roles & 50–950 ramp

primary
#7E54B2
secondary
#B3C69C
accent
#CE5A9A
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100B13
muted
#7F7C82

Preview Lab

Preview with #7E54B2

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

Preview Lab → · Contrast checker → · Palette generator →

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