#7B5DF7#7B5DF7

#7B5DF7 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.4% C 0.219 H 286.6°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7B5DF7
RGBrgb(123, 93, 247)
HSLhsl(252, 91%, 67%)
HSVhsv(252, 62%, 97%)
CMYKcmyk(50.2%, 62.3%, 0%, 3.1%)
CIE-LABlab(50.40, 49.89, -73.27)
CIE-LCHlch(50.40, 88.64, 304.25°)
OKLaboklab(59.36% 0.0627 -0.21)
OKLCHoklch(59.36% 0.219 286.6)
XYZxyz(28.8663, 18.7537, 90.0765)
Luminance0.1875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5DF7 #D9F75D
analogous
#5D8CF7 #7B5DF7 #C85DF7
triadic
#7B5DF7 #F77B5D #5DF77B
tetradic
#7B5DF7 #F75D8C #D9F75D #5DF7C8
square
#7B5DF7 #F75D8C #D9F75D #5DF7C8
split-complementary
#7B5DF7 #F7C85D #8CF75D
monochromatic
#310ACF #4B23F4 #7B5DF7 #AB97FA #DAD2FD

Accessibility & contrast

On white

4.42
#7B5DF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#7B5DF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B5DF7
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5DF7#FFFFFF#000000##000000
##7B5DF71.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFC
Deuteranopia (green-blind)
#0074F4
Tritanopia (blue-blind)
#4D82A2
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7b5df7;
/* rgb */ color: rgb(123, 93, 247);
/* oklch */ color: oklch(59.4% 0.219 286.6);
Tailwind
colors: {
  custom: {
    50: '#aa8cfb',
    500: '#7b5df7',
    950: '#000000',
  },
}
SCSS
$custom: #7b5df7;
$custom-light: #aa8cfb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5df7",
  "rgb": {
    "r": 123,
    "g": 93,
    "b": 247
  },
  "hsl": {
    "h": 251.688,
    "s": 90.588,
    "l": 66.667
  },
  "oklch": {
    "l": 0.59355,
    "c": 0.21919,
    "h": 286.6
  },
  "luminance": 0.18755
}

Semantic roles & 50–950 ramp

primary
#7B5DF7
secondary
#E7F1BF
accent
#E600B9
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7B5DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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