#7B5CF9#7B5CF9

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

Color values

HEX#7B5CF9
RGBrgb(123, 92, 249)
HSLhsl(252, 93%, 67%)
HSVhsv(252, 63%, 98%)
CMYKcmyk(50.6%, 63.1%, 0%, 2.4%)
CIE-LABlab(50.34, 51.01, -74.48)
CIE-LCHlch(50.34, 90.28, 304.41°)
OKLaboklab(59.36% 0.0635 -0.2136)
OKLCHoklch(59.36% 0.223 286.6)
XYZxyz(29.0893, 18.7034, 91.6815)
Luminance0.1870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5CF9 #DAF95C
analogous
#5C8CF9 #7B5CF9 #C95CF9
triadic
#7B5CF9 #F97B5C #5CF97B
tetradic
#7B5CF9 #F95C8C #DAF95C #5CF9C9
square
#7B5CF9 #F95C8C #DAF95C #5CF9C9
split-complementary
#7B5CF9 #F9C95C #8CF95C
monochromatic
#3008D3 #4B21F7 #7B5CF9 #AB97FB #DBD2FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B5CF9#FFFFFF#000000##000000
##7B5CF91.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)
#007CFE
Deuteranopia (green-blind)
#0073F6
Tritanopia (blue-blind)
#4B82A2
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7b5cf9;
/* rgb */ color: rgb(123, 92, 249);
/* oklch */ color: oklch(59.4% 0.223 286.6);
Tailwind
colors: {
  custom: {
    50: '#ab8cfc',
    500: '#7b5cf9',
    950: '#000000',
  },
}
SCSS
$custom: #7b5cf9;
$custom-light: #ab8cfc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5cf9",
  "rgb": {
    "r": 123,
    "g": 92,
    "b": 249
  },
  "hsl": {
    "h": 251.847,
    "s": 92.899,
    "l": 66.863
  },
  "oklch": {
    "l": 0.59358,
    "c": 0.22283,
    "h": 286.6
  },
  "luminance": 0.18705
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B5CF9

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

Preview Lab → · Contrast checker → · Palette generator →

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