#7B5FFB#7B5FFB

#7B5FFB is a mid, highly saturated violet. Relative luminance 0.194; OKLCH L 60.0% C 0.222 H 285.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7B5FFB
RGBrgb(123, 95, 251)
HSLhsl(251, 95%, 68%)
HSVhsv(251, 62%, 98%)
CMYKcmyk(51%, 62.2%, 0%, 1.6%)
CIE-LABlab(51.10, 49.93, -74.35)
CIE-LCHlch(51.10, 89.56, 303.88°)
OKLaboklab(59.96% 0.0604 -0.2132)
OKLCHoklch(59.96% 0.222 285.8)
XYZxyz(29.6680, 19.3589, 93.4215)
Luminance0.1936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5FFB #DFFB5F
analogous
#5F91FB #7B5FFB #C95FFB
triadic
#7B5FFB #FB7B5F #5FFB7B
tetradic
#7B5FFB #FB5F91 #DFFB5F #5FFBC9
square
#7B5FFB #FB5F91 #DFFB5F #5FFBC9
split-complementary
#7B5FFB #FBC95F #91FB5F
monochromatic
#2C05DA #4A23FA #7B5FFB #AC9BFC #DED6FE

Accessibility & contrast

On white

4.31
#7B5FFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#7B5FFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B5FFB
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5FFB#FFFFFF#000000##000000
##7B5FFB1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFF
Deuteranopia (green-blind)
#0075F8
Tritanopia (blue-blind)
#4985A4
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7b5ffb;
/* rgb */ color: rgb(123, 95, 251);
/* oklch */ color: oklch(60.0% 0.222 285.8);
Tailwind
colors: {
  custom: {
    50: '#ab8efe',
    500: '#7b5ffb',
    950: '#000000',
  },
}
SCSS
$custom: #7b5ffb;
$custom-light: #ab8efe;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5ffb",
  "rgb": {
    "r": 123,
    "g": 95,
    "b": 251
  },
  "hsl": {
    "h": 250.769,
    "s": 95.122,
    "l": 67.843
  },
  "oklch": {
    "l": 0.59961,
    "c": 0.2216,
    "h": 285.8
  },
  "luminance": 0.1936
}

Semantic roles & 50–950 ramp

primary
#7B5FFB
secondary
#EAF3C3
accent
#E600BC
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7B5FFB

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

Preview Lab → · Contrast checker → · Palette generator →

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