#7B5FEC#7B5FEC

#7B5FEC is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 58.8% C 0.203 H 287.6°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#7B5FEC
RGBrgb(123, 95, 236)
HSLhsl(252, 79%, 65%)
HSVhsv(252, 60%, 93%)
CMYKcmyk(47.9%, 59.7%, 0%, 7.5%)
CIE-LABlab(50.04, 45.64, -67.70)
CIE-LCHlch(50.04, 81.65, 303.98°)
OKLaboklab(58.85% 0.0614 -0.1936)
OKLCHoklch(58.85% 0.203 287.6)
XYZxyz(27.3965, 18.4503, 81.4583)
Luminance0.1845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5FEC #D0EC5F
analogous
#5F89EC #7B5FEC #C25FEC
triadic
#7B5FEC #EC7B5F #5FEC7B
tetradic
#7B5FEC #EC5F89 #D0EC5F #5FECC2
square
#7B5FEC #EC5F89 #D0EC5F #5FECC2
split-complementary
#7B5FEC #ECC25F #89EC5F
monochromatic
#3716BA #4E28E6 #7B5FEC #A896F2 #D5CCF9

Accessibility & contrast

On white

4.48
#7B5FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#7B5FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B5FEC
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5FEC#FFFFFF#000000##000000
##7B5FEC1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF1
Deuteranopia (green-blind)
#0073E9
Tritanopia (blue-blind)
#55809D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7b5fec;
/* rgb */ color: rgb(123, 95, 236);
/* oklch */ color: oklch(58.8% 0.203 287.6);
Tailwind
colors: {
  custom: {
    50: '#a98df3',
    500: '#7b5fec',
    950: '#000000',
  },
}
SCSS
$custom: #7b5fec;
$custom-light: #a98df3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5fec",
  "rgb": {
    "r": 123,
    "g": 95,
    "b": 236
  },
  "hsl": {
    "h": 251.915,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.58846,
    "c": 0.20315,
    "h": 287.6
  },
  "luminance": 0.18452
}

Semantic roles & 50–950 ramp

primary
#7B5FEC
secondary
#E2EBBB
accent
#DB0AB2
background
#FAF8FF
surface
#F5F0FE
border
#CFCBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7B5FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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