#7B5FF2#7B5FF2

#7B5FF2 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.3% C 0.211 H 286.9°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7B5FF2
RGBrgb(123, 95, 242)
HSLhsl(251, 85%, 66%)
HSVhsv(251, 61%, 95%)
CMYKcmyk(49.2%, 60.7%, 0%, 5.1%)
CIE-LABlab(50.46, 47.35, -70.38)
CIE-LCHlch(50.46, 84.83, 303.93°)
OKLaboklab(59.29% 0.0611 -0.2015)
OKLCHoklch(59.29% 0.211 286.9)
XYZxyz(28.2829, 18.8049, 86.1266)
Luminance0.1881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5FF2 #D6F25F
analogous
#5F8CF2 #7B5FF2 #C55FF2
triadic
#7B5FF2 #F27B5F #5FF27B
tetradic
#7B5FF2 #F25F8C #D6F25F #5FF2C5
square
#7B5FF2 #F25F8C #D6F25F #5FF2C5
split-complementary
#7B5FF2 #F2C55F #8CF25F
monochromatic
#3310C6 #4C26ED #7B5FF2 #AA98F7 #D8D0FB

Accessibility & contrast

On white

4.41
#7B5FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#7B5FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B5FF2
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5FF2#FFFFFF#000000##000000
##7B5FF21.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF7
Deuteranopia (green-blind)
#0074EF
Tritanopia (blue-blind)
#5082A0
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7b5ff2;
/* rgb */ color: rgb(123, 95, 242);
/* oklch */ color: oklch(59.3% 0.211 286.9);
Tailwind
colors: {
  custom: {
    50: '#aa8ef7',
    500: '#7b5ff2',
    950: '#000000',
  },
}
SCSS
$custom: #7b5ff2;
$custom-light: #aa8ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5ff2",
  "rgb": {
    "r": 123,
    "g": 95,
    "b": 242
  },
  "hsl": {
    "h": 251.429,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.59286,
    "c": 0.21058,
    "h": 286.9
  },
  "luminance": 0.18806
}

Semantic roles & 50–950 ramp

primary
#7B5FF2
secondary
#E5EFBE
accent
#E104B7
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7B5FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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