#7B5FF5#7B5FF5

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

Color values

HEX#7B5FF5
RGBrgb(123, 95, 245)
HSLhsl(251, 88%, 67%)
HSVhsv(251, 61%, 96%)
CMYKcmyk(49.8%, 61.2%, 0%, 3.9%)
CIE-LABlab(50.67, 48.21, -71.71)
CIE-LCHlch(50.67, 86.41, 303.91°)
OKLaboklab(59.51% 0.0609 -0.2054)
OKLCHoklch(59.51% 0.214 286.5)
XYZxyz(28.7372, 18.9866, 88.5191)
Luminance0.1899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5FF5 #D9F55F
analogous
#5F8EF5 #7B5FF5 #C65FF5
triadic
#7B5FF5 #F57B5F #5FF57B
tetradic
#7B5FF5 #F55F8E #D9F55F #5FF5C6
square
#7B5FF5 #F55F8E #D9F55F #5FF5C6
split-complementary
#7B5FF5 #F5C65F #8EF55F
monochromatic
#310DCD #4B25F1 #7B5FF5 #AB99F9 #DAD2FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B5FF5#FFFFFF#000000##000000
##7B5FF51.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)
#007CFA
Deuteranopia (green-blind)
#0074F2
Tritanopia (blue-blind)
#4E83A1
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7b5ff5;
/* rgb */ color: rgb(123, 95, 245);
/* oklch */ color: oklch(59.5% 0.214 286.5);
Tailwind
colors: {
  custom: {
    50: '#aa8ef9',
    500: '#7b5ff5',
    950: '#000000',
  },
}
SCSS
$custom: #7b5ff5;
$custom-light: #aa8ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5ff5",
  "rgb": {
    "r": 123,
    "g": 95,
    "b": 245
  },
  "hsl": {
    "h": 251.2,
    "s": 88.235,
    "l": 66.667
  },
  "oklch": {
    "l": 0.59509,
    "c": 0.21427,
    "h": 286.5
  },
  "luminance": 0.18988
}

Semantic roles & 50–950 ramp

primary
#7B5FF5
secondary
#E7F0C0
accent
#E501BA
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7B5FF5

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

Preview Lab → · Contrast checker → · Palette generator →

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