#7B5AFB#7B5AFB

#7B5AFB is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.2% C 0.228 H 286.6°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7B5AFB
RGBrgb(123, 90, 251)
HSLhsl(252, 95%, 67%)
HSVhsv(252, 64%, 98%)
CMYKcmyk(51%, 64.1%, 0%, 1.6%)
CIE-LABlab(50.08, 52.67, -76.01)
CIE-LCHlch(50.08, 92.48, 304.72°)
OKLaboklab(59.22% 0.0652 -0.2181)
OKLCHoklch(59.22% 0.228 286.6)
XYZxyz(29.2320, 18.4869, 93.2761)
Luminance0.1849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5AFB #DAFB5A
analogous
#5A8AFB #7B5AFB #CB5AFB
triadic
#7B5AFB #FB7B5A #5AFB7B
tetradic
#7B5AFB #FB5A8A #DAFB5A #5AFBCB
square
#7B5AFB #FB5A8A #DAFB5A #5AFBCB
split-complementary
#7B5AFB #FBCB5A #8AFB5A
monochromatic
#3005D5 #4B1EFA #7B5AFB #AB96FC #DBD2FE

Accessibility & contrast

On white

4.47
#7B5AFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#7B5AFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B5AFB
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5AFB#FFFFFF#000000##000000
##7B5AFB1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BFF
Deuteranopia (green-blind)
#0073F8
Tritanopia (blue-blind)
#4A82A3
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7b5afb;
/* rgb */ color: rgb(123, 90, 251);
/* oklch */ color: oklch(59.2% 0.228 286.6);
Tailwind
colors: {
  custom: {
    50: '#ab8afe',
    500: '#7b5afb',
    950: '#000000',
  },
}
SCSS
$custom: #7b5afb;
$custom-light: #ab8afe;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5afb",
  "rgb": {
    "r": 123,
    "g": 90,
    "b": 251
  },
  "hsl": {
    "h": 252.298,
    "s": 95.266,
    "l": 66.863
  },
  "oklch": {
    "l": 0.59218,
    "c": 0.22763,
    "h": 286.6
  },
  "luminance": 0.18488
}

Semantic roles & 50–950 ramp

primary
#7B5AFB
secondary
#E8F2BF
accent
#E600B6
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7B5AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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