#7B5FA2#7B5FA2

#7B5FA2 is a mid, moderate violet. Relative luminance 0.150; OKLCH L 54.2% C 0.106 H 302.3°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#7B5FA2
RGBrgb(123, 95, 162)
HSLhsl(265, 26%, 50%)
HSVhsv(265, 41%, 64%)
CMYKcmyk(24.1%, 41.4%, 0%, 36.5%)
CIE-LABlab(45.64, 25.54, -32.13)
CIE-LCHlch(45.64, 41.04, 308.48°)
OKLaboklab(54.16% 0.0565 -0.0895)
OKLCHoklch(54.16% 0.106 302.3)
XYZxyz(18.7808, 15.0040, 36.0821)
Luminance0.1500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5FA2 #86A25F
analogous
#5F64A2 #7B5FA2 #9C5FA2
triadic
#7B5FA2 #A27B5F #5FA27B
tetradic
#7B5FA2 #A25F64 #86A25F #5FA29C
square
#7B5FA2 #A25F64 #86A25F #5FA29C
split-complementary
#7B5FA2 #A29C5F #64A25F
monochromatic
#403155 #5E487C #7B5FA2 #9B86B8 #BBACCF

Accessibility & contrast

On white

5.25
#7B5FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#7B5FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5FA2
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5FA2#FFFFFF#000000##FFFFFF
##7B5FA21.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E6CA5
Deuteranopia (green-blind)
#546CA0
Tritanopia (blue-blind)
#746A79
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7b5fa2;
/* rgb */ color: rgb(123, 95, 162);
/* oklch */ color: oklch(54.2% 0.106 302.3);
Tailwind
colors: {
  custom: {
    50: '#a28dbe',
    500: '#7b5fa2',
    950: '#000000',
  },
}
SCSS
$custom: #7b5fa2;
$custom-light: #a28dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5fa2",
  "rgb": {
    "r": 123,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 265.075,
    "s": 26.482,
    "l": 50.392
  },
  "oklch": {
    "l": 0.54162,
    "c": 0.10581,
    "h": 302.3
  },
  "luminance": 0.15004
}

Semantic roles & 50–950 ramp

primary
#7B5FA2
secondary
#B1BD9F
accent
#C3659C
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #7B5FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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