#7B54F2#7B54F2

#7B54F2 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.7% C 0.224 H 288.7°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#7B54F2
RGBrgb(123, 84, 242)
HSLhsl(255, 86%, 64%)
HSVhsv(255, 65%, 95%)
CMYKcmyk(49.2%, 65.3%, 0%, 5.1%)
CIE-LABlab(48.21, 53.37, -74.04)
CIE-LCHlch(48.21, 91.27, 305.79°)
OKLaboklab(57.66% 0.0718 -0.2123)
OKLCHoklch(57.66% 0.224 288.7)
XYZxyz(27.3611, 16.9612, 85.8193)
Luminance0.1696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B54F2 #CBF254
analogous
#547CF2 #7B54F2 #CA54F2
triadic
#7B54F2 #F27B54 #54F27B
tetradic
#7B54F2 #F2547C #CBF254 #54F2CA
square
#7B54F2 #F2547C #CBF254 #54F2CA
split-complementary
#7B54F2 #F2CA54 #7CF254
monochromatic
#3A0EBD #4F1BEE #7B54F2 #A78DF6 #D3C6FB

Accessibility & contrast

On white

4.78
#7B54F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#7B54F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B54F2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B54F2#FFFFFF#000000##FFFFFF
##7B54F21.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F7
Deuteranopia (green-blind)
#006EEF
Tritanopia (blue-blind)
#517B9C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7b54f2;
/* rgb */ color: rgb(123, 84, 242);
/* oklch */ color: oklch(57.7% 0.224 288.7);
Tailwind
colors: {
  custom: {
    50: '#aa86f7',
    500: '#7b54f2',
    950: '#000000',
  },
}
SCSS
$custom: #7b54f2;
$custom-light: #aa86f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b54f2",
  "rgb": {
    "r": 123,
    "g": 84,
    "b": 242
  },
  "hsl": {
    "h": 254.81,
    "s": 85.87,
    "l": 63.922
  },
  "oklch": {
    "l": 0.57656,
    "c": 0.2241,
    "h": 288.7
  },
  "luminance": 0.16962
}

Semantic roles & 50–950 ramp

primary
#7B54F2
secondary
#DFEDB5
accent
#E203AB
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7B54F2

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

Preview Lab → · Contrast checker → · Palette generator →

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