#7B5DF6#7B5DF6

#7B5DF6 is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.3% C 0.218 H 286.7°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#7B5DF6
RGBrgb(123, 93, 246)
HSLhsl(252, 89%, 66%)
HSVhsv(252, 62%, 96%)
CMYKcmyk(50%, 62.2%, 0%, 3.5%)
CIE-LABlab(50.33, 49.61, -72.83)
CIE-LCHlch(50.33, 88.12, 304.26°)
OKLaboklab(59.28% 0.0628 -0.2087)
OKLCHoklch(59.28% 0.218 286.7)
XYZxyz(28.7124, 18.6921, 89.2659)
Luminance0.1869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5DF6 #D8F65D
analogous
#5D8CF6 #7B5DF6 #C85DF6
triadic
#7B5DF6 #F67B5D #5DF67B
tetradic
#7B5DF6 #F65D8C #D8F65D #5DF6C8
square
#7B5DF6 #F65D8C #D8F65D #5DF6C8
split-complementary
#7B5DF6 #F6C85D #8CF65D
monochromatic
#310BCD #4C23F3 #7B5DF6 #AA97F9 #D9D1FC

Accessibility & contrast

On white

4.43
#7B5DF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#7B5DF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B5DF6
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5DF6#FFFFFF#000000##000000
##7B5DF61.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFB
Deuteranopia (green-blind)
#0073F3
Tritanopia (blue-blind)
#4E82A1
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7b5df6;
/* rgb */ color: rgb(123, 93, 246);
/* oklch */ color: oklch(59.3% 0.218 286.7);
Tailwind
colors: {
  custom: {
    50: '#aa8cfa',
    500: '#7b5df6',
    950: '#000000',
  },
}
SCSS
$custom: #7b5df6;
$custom-light: #aa8cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5df6",
  "rgb": {
    "r": 123,
    "g": 93,
    "b": 246
  },
  "hsl": {
    "h": 251.765,
    "s": 89.474,
    "l": 66.471
  },
  "oklch": {
    "l": 0.5928,
    "c": 0.21798,
    "h": 286.7
  },
  "luminance": 0.18693
}

Semantic roles & 50–950 ramp

primary
#7B5DF6
secondary
#E6F0BF
accent
#E600B8
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7B5DF6

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

Preview Lab → · Contrast checker → · Palette generator →

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