#7B5BE7#7B5BE7

#7B5BE7 is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 57.9% C 0.202 H 289.0°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#7B5BE7
RGBrgb(123, 91, 231)
HSLhsl(254, 74%, 63%)
HSVhsv(254, 61%, 91%)
CMYKcmyk(46.8%, 60.6%, 0%, 9.4%)
CIE-LABlab(48.84, 46.47, -66.84)
CIE-LCHlch(48.84, 81.40, 304.81°)
OKLaboklab(57.86% 0.0659 -0.1911)
OKLCHoklch(57.86% 0.202 289)
XYZxyz(26.3291, 17.4616, 77.5690)
Luminance0.1746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5BE7 #C7E75B
analogous
#5B81E7 #7B5BE7 #C15BE7
triadic
#7B5BE7 #E77B5B #5BE77B
tetradic
#7B5BE7 #E75B81 #C7E75B #5BE7C1
square
#7B5BE7 #E75B81 #C7E75B #5BE7C1
split-complementary
#7B5BE7 #E7C15B #81E75B
monochromatic
#3B19AE #5026DF #7B5BE7 #A690EF #D1C6F7

Accessibility & contrast

On white

4.67
#7B5BE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#7B5BE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5BE7
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5BE7#FFFFFF#000000##FFFFFF
##7B5BE71.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077EC
Deuteranopia (green-blind)
#0071E4
Tritanopia (blue-blind)
#587B98
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7b5be7;
/* rgb */ color: rgb(123, 91, 231);
/* oklch */ color: oklch(57.9% 0.202 289.0);
Tailwind
colors: {
  custom: {
    50: '#a98bef',
    500: '#7b5be7',
    950: '#000000',
  },
}
SCSS
$custom: #7b5be7;
$custom-light: #a98bef;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5be7",
  "rgb": {
    "r": 123,
    "g": 91,
    "b": 231
  },
  "hsl": {
    "h": 253.714,
    "s": 74.468,
    "l": 63.137
  },
  "oklch": {
    "l": 0.57858,
    "c": 0.20215,
    "h": 289
  },
  "luminance": 0.17463
}

Semantic roles & 50–950 ramp

primary
#7B5BE7
secondary
#DDE8B6
accent
#D70FA9
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7B5BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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