#7B54E2#7B54E2

#7B54E2 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.4% C 0.205 H 291.0°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7B54E2
RGBrgb(123, 84, 226)
HSLhsl(256, 71%, 61%)
HSVhsv(256, 63%, 89%)
CMYKcmyk(45.6%, 62.8%, 0%, 11.4%)
CIE-LABlab(47.03, 48.95, -66.94)
CIE-LCHlch(47.03, 82.93, 306.17°)
OKLaboklab(56.43% 0.0735 -0.1914)
OKLCHoklch(56.43% 0.205 291)
XYZxyz(25.0623, 16.0417, 73.7126)
Luminance0.1604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B54E2 #BBE254
analogous
#5474E2 #7B54E2 #C254E2
triadic
#7B54E2 #E27B54 #54E27B
tetradic
#7B54E2 #E25474 #BBE254 #54E2C2
square
#7B54E2 #E25474 #BBE254 #54E2C2
split-complementary
#7B54E2 #E2C254 #74E254
monochromatic
#401BA0 #5524D5 #7B54E2 #A388EB #CCBDF4

Accessibility & contrast

On white

4.99
#7B54E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#7B54E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B54E2
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B54E2#FFFFFF#000000##FFFFFF
##7B54E21.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E6
Deuteranopia (green-blind)
#006CDF
Tritanopia (blue-blind)
#5C7593
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7b54e2;
/* rgb */ color: rgb(123, 84, 226);
/* oklch */ color: oklch(56.4% 0.205 291.0);
Tailwind
colors: {
  custom: {
    50: '#a886ec',
    500: '#7b54e2',
    950: '#000000',
  },
}
SCSS
$custom: #7b54e2;
$custom-light: #a886ec;
$custom-dark: #000000;
JSON
{
  "hex": "#7b54e2",
  "rgb": {
    "r": 123,
    "g": 84,
    "b": 226
  },
  "hsl": {
    "h": 256.479,
    "s": 71,
    "l": 60.784
  },
  "oklch": {
    "l": 0.56431,
    "c": 0.20507,
    "h": 291
  },
  "luminance": 0.16043
}

Semantic roles & 50–950 ramp

primary
#7B54E2
secondary
#D5E4AE
accent
#D3129E
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7B54E2

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

Preview Lab → · Contrast checker → · Palette generator →

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