#7B5EF8#7B5EF8

#7B5EF8 is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 59.6% C 0.219 H 286.3°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#7B5EF8
RGBrgb(123, 94, 248)
HSLhsl(251, 92%, 67%)
HSVhsv(251, 62%, 97%)
CMYKcmyk(50.4%, 62.1%, 0%, 2.7%)
CIE-LABlab(50.68, 49.62, -73.37)
CIE-LCHlch(50.68, 88.58, 304.07°)
OKLaboklab(59.58% 0.0617 -0.2103)
OKLCHoklch(59.58% 0.219 286.3)
XYZxyz(29.1093, 18.9922, 90.9208)
Luminance0.1899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5EF8 #DBF85E
analogous
#5E8EF8 #7B5EF8 #C85EF8
triadic
#7B5EF8 #F87B5E #5EF87B
tetradic
#7B5EF8 #F85E8E #DBF85E #5EF8C8
square
#7B5EF8 #F85E8E #DBF85E #5EF8C8
split-complementary
#7B5EF8 #F8C85E #8EF85E
monochromatic
#2F09D2 #4B23F5 #7B5EF8 #AB99FB #DBD3FD

Accessibility & contrast

On white

4.38
#7B5EF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#7B5EF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B5EF8
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5EF8#FFFFFF#000000##000000
##7B5EF81.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFD
Deuteranopia (green-blind)
#0074F5
Tritanopia (blue-blind)
#4C83A2
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7b5ef8;
/* rgb */ color: rgb(123, 94, 248);
/* oklch */ color: oklch(59.6% 0.219 286.3);
Tailwind
colors: {
  custom: {
    50: '#aa8dfc',
    500: '#7b5ef8',
    950: '#000000',
  },
}
SCSS
$custom: #7b5ef8;
$custom-light: #aa8dfc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5ef8",
  "rgb": {
    "r": 123,
    "g": 94,
    "b": 248
  },
  "hsl": {
    "h": 251.299,
    "s": 91.667,
    "l": 67.059
  },
  "oklch": {
    "l": 0.59582,
    "c": 0.21918,
    "h": 286.3
  },
  "luminance": 0.18994
}

Semantic roles & 50–950 ramp

primary
#7B5EF8
secondary
#E8F1C0
accent
#E600BA
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7B5EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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