#7B5FEB#7B5FEB

#7B5FEB is a mid, highly saturated violet. Relative luminance 0.184; OKLCH L 58.8% C 0.202 H 287.7°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#7B5FEB
RGBrgb(123, 95, 235)
HSLhsl(252, 78%, 65%)
HSVhsv(252, 60%, 92%)
CMYKcmyk(47.7%, 59.6%, 0%, 7.8%)
CIE-LABlab(49.97, 45.35, -67.25)
CIE-LCHlch(49.97, 81.12, 304.00°)
OKLaboklab(58.77% 0.0615 -0.1923)
OKLCHoklch(58.77% 0.202 287.7)
XYZxyz(27.2516, 18.3924, 80.6953)
Luminance0.1839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5FEB #CFEB5F
analogous
#5F89EB #7B5FEB #C15FEB
triadic
#7B5FEB #EB7B5F #5FEB7B
tetradic
#7B5FEB #EB5F89 #CFEB5F #5FEBC1
square
#7B5FEB #EB5F89 #CFEB5F #5FEBC1
split-complementary
#7B5FEB #EBC15F #89EB5F
monochromatic
#3717B9 #4E29E4 #7B5FEB #A895F2 #D5CCF9

Accessibility & contrast

On white

4.49
#7B5FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#7B5FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B5FEB
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5FEB#FFFFFF#000000##000000
##7B5FEB1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF0
Deuteranopia (green-blind)
#0073E8
Tritanopia (blue-blind)
#557F9C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7b5feb;
/* rgb */ color: rgb(123, 95, 235);
/* oklch */ color: oklch(58.8% 0.202 287.7);
Tailwind
colors: {
  custom: {
    50: '#a98df2',
    500: '#7b5feb',
    950: '#000000',
  },
}
SCSS
$custom: #7b5feb;
$custom-light: #a98df2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5feb",
  "rgb": {
    "r": 123,
    "g": 95,
    "b": 235
  },
  "hsl": {
    "h": 252,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.58774,
    "c": 0.20191,
    "h": 287.7
  },
  "luminance": 0.18394
}

Semantic roles & 50–950 ramp

primary
#7B5FEB
secondary
#E1EBBB
accent
#DA0BB1
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7B5FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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