#7B5EF5#7B5EF5

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

Color values

HEX#7B5EF5
RGBrgb(123, 94, 245)
HSLhsl(252, 88%, 66%)
HSVhsv(252, 62%, 96%)
CMYKcmyk(49.8%, 61.6%, 0%, 3.9%)
CIE-LABlab(50.46, 48.77, -72.05)
CIE-LCHlch(50.46, 87.00, 304.09°)
OKLaboklab(59.36% 0.0619 -0.2064)
OKLCHoklch(59.36% 0.216 286.7)
XYZxyz(28.6477, 18.8076, 88.4892)
Luminance0.1881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5EF5 #D8F55E
analogous
#5E8DF5 #7B5EF5 #C75EF5
triadic
#7B5EF5 #F57B5E #5EF57B
tetradic
#7B5EF5 #F55E8D #D8F55E #5EF5C7
square
#7B5EF5 #F55E8D #D8F55E #5EF5C7
split-complementary
#7B5EF5 #F5C75E #8DF55E
monochromatic
#310DCC #4C24F1 #7B5EF5 #AA98F9 #D9D1FC

Accessibility & contrast

On white

4.41
#7B5EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#7B5EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B5EF5
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5EF5#FFFFFF#000000##000000
##7B5EF51.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFA
Deuteranopia (green-blind)
#0074F2
Tritanopia (blue-blind)
#4E82A1
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7b5ef5;
/* rgb */ color: rgb(123, 94, 245);
/* oklch */ color: oklch(59.4% 0.216 286.7);
Tailwind
colors: {
  custom: {
    50: '#aa8df9',
    500: '#7b5ef5',
    950: '#000000',
  },
}
SCSS
$custom: #7b5ef5;
$custom-light: #aa8df9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5ef5",
  "rgb": {
    "r": 123,
    "g": 94,
    "b": 245
  },
  "hsl": {
    "h": 251.523,
    "s": 88.304,
    "l": 66.471
  },
  "oklch": {
    "l": 0.59356,
    "c": 0.21552,
    "h": 286.7
  },
  "luminance": 0.18809
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B5EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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