#7B5BEC#7B5BEC

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

Color values

HEX#7B5BEC
RGBrgb(123, 91, 236)
HSLhsl(253, 79%, 64%)
HSVhsv(253, 61%, 93%)
CMYKcmyk(47.9%, 61.4%, 0%, 7.5%)
CIE-LABlab(49.19, 47.88, -69.08)
CIE-LCHlch(49.19, 84.05, 304.73°)
OKLaboklab(58.23% 0.0655 -0.1977)
OKLCHoklch(58.23% 0.208 288.3)
XYZxyz(27.0454, 17.7481, 81.3413)
Luminance0.1775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5BEC #CCEC5B
analogous
#5B84EC #7B5BEC #C35BEC
triadic
#7B5BEC #EC7B5B #5BEC7B
tetradic
#7B5BEC #EC5B84 #CCEC5B #5BECC3
square
#7B5BEC #EC5B84 #CCEC5B #5BECC3
split-complementary
#7B5BEC #ECC35B #84EC5B
monochromatic
#3915B7 #4F24E6 #7B5BEC #A792F2 #D3C9F9

Accessibility & contrast

On white

4.62
#7B5BEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#7B5BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5BEC
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5BEC#FFFFFF#000000##FFFFFF
##7B5BEC1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F1
Deuteranopia (green-blind)
#0071E9
Tritanopia (blue-blind)
#557D9B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7b5bec;
/* rgb */ color: rgb(123, 91, 236);
/* oklch */ color: oklch(58.2% 0.208 288.3);
Tailwind
colors: {
  custom: {
    50: '#a98bf3',
    500: '#7b5bec',
    950: '#000000',
  },
}
SCSS
$custom: #7b5bec;
$custom-light: #a98bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5bec",
  "rgb": {
    "r": 123,
    "g": 91,
    "b": 236
  },
  "hsl": {
    "h": 253.241,
    "s": 79.235,
    "l": 64.118
  },
  "oklch": {
    "l": 0.58227,
    "c": 0.20829,
    "h": 288.3
  },
  "luminance": 0.17749
}

Semantic roles & 50–950 ramp

primary
#7B5BEC
secondary
#E0EBB8
accent
#DC0AAD
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7B5BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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