#7B5BEB#7B5BEB

#7B5BEB is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.2% C 0.207 H 288.5°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#7B5BEB
RGBrgb(123, 91, 235)
HSLhsl(253, 78%, 64%)
HSVhsv(253, 61%, 92%)
CMYKcmyk(47.7%, 61.3%, 0%, 7.8%)
CIE-LABlab(49.12, 47.60, -68.63)
CIE-LCHlch(49.12, 83.52, 304.74°)
OKLaboklab(58.15% 0.0656 -0.1964)
OKLCHoklch(58.15% 0.207 288.5)
XYZxyz(26.9005, 17.6902, 80.5783)
Luminance0.1769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5BEB #CBEB5B
analogous
#5B83EB #7B5BEB #C35BEB
triadic
#7B5BEB #EB7B5B #5BEB7B
tetradic
#7B5BEB #EB5B83 #CBEB5B #5BEBC3
square
#7B5BEB #EB5B83 #CBEB5B #5BEBC3
split-complementary
#7B5BEB #EBC35B #83EB5B
monochromatic
#3A16B5 #4F24E4 #7B5BEB #A792F2 #D3C8F8

Accessibility & contrast

On white

4.63
#7B5BEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#7B5BEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5BEB
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5BEB#FFFFFF#000000##FFFFFF
##7B5BEB1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#0071E8
Tritanopia (blue-blind)
#567D9B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7b5beb;
/* rgb */ color: rgb(123, 91, 235);
/* oklch */ color: oklch(58.2% 0.207 288.5);
Tailwind
colors: {
  custom: {
    50: '#a98bf2',
    500: '#7b5beb',
    950: '#000000',
  },
}
SCSS
$custom: #7b5beb;
$custom-light: #a98bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5beb",
  "rgb": {
    "r": 123,
    "g": 91,
    "b": 235
  },
  "hsl": {
    "h": 253.333,
    "s": 78.261,
    "l": 63.922
  },
  "oklch": {
    "l": 0.58152,
    "c": 0.20706,
    "h": 288.5
  },
  "luminance": 0.17691
}

Semantic roles & 50–950 ramp

primary
#7B5BEB
secondary
#DFEAB8
accent
#DB0BAC
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7B5BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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