#7B5CE7#7B5CE7

#7B5CE7 is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 58.0% C 0.201 H 288.8°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#7B5CE7
RGBrgb(123, 92, 231)
HSLhsl(253, 74%, 63%)
HSVhsv(253, 60%, 91%)
CMYKcmyk(46.8%, 60.2%, 0%, 9.4%)
CIE-LABlab(49.05, 45.91, -66.49)
CIE-LCHlch(49.05, 80.80, 304.62°)
OKLaboklab(58.01% 0.0648 -0.1901)
OKLCHoklch(58.01% 0.201 288.8)
XYZxyz(26.4152, 17.6337, 77.5976)
Luminance0.1764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5CE7 #C8E75C
analogous
#5C82E7 #7B5CE7 #C05CE7
triadic
#7B5CE7 #E77B5C #5CE77B
tetradic
#7B5CE7 #E75C82 #C8E75C #5CE7C0
square
#7B5CE7 #E75C82 #C8E75C #5CE7C0
split-complementary
#7B5CE7 #E7C05C #82E75C
monochromatic
#3B1AAF #5027DF #7B5CE7 #A691EF #D1C7F7

Accessibility & contrast

On white

4.64
#7B5CE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#7B5CE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5CE7
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5CE7#FFFFFF#000000##FFFFFF
##7B5CE71.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077EB
Deuteranopia (green-blind)
#0071E4
Tritanopia (blue-blind)
#587C99
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7b5ce7;
/* rgb */ color: rgb(123, 92, 231);
/* oklch */ color: oklch(58.0% 0.201 288.8);
Tailwind
colors: {
  custom: {
    50: '#a98bef',
    500: '#7b5ce7',
    950: '#000000',
  },
}
SCSS
$custom: #7b5ce7;
$custom-light: #a98bef;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5ce7",
  "rgb": {
    "r": 123,
    "g": 92,
    "b": 231
  },
  "hsl": {
    "h": 253.381,
    "s": 74.332,
    "l": 63.333
  },
  "oklch": {
    "l": 0.58013,
    "c": 0.20084,
    "h": 288.8
  },
  "luminance": 0.17635
}

Semantic roles & 50–950 ramp

primary
#7B5CE7
secondary
#DDE8B7
accent
#D60FAA
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7B5CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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