#7B5EA2#7B5EA2

#7B5EA2 is a mid, moderate violet. Relative luminance 0.148; OKLCH L 54.0% C 0.108 H 302.6°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#7B5EA2
RGBrgb(123, 94, 162)
HSLhsl(266, 27%, 50%)
HSVhsv(266, 42%, 64%)
CMYKcmyk(24.1%, 42%, 0%, 36.5%)
CIE-LABlab(45.39, 26.13, -32.51)
CIE-LCHlch(45.39, 41.71, 308.79°)
OKLaboklab(53.98% 0.058 -0.0906)
OKLCHoklch(53.98% 0.108 302.6)
XYZxyz(18.6913, 14.8250, 36.0522)
Luminance0.1482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5EA2 #85A25E
analogous
#5E63A2 #7B5EA2 #9D5EA2
triadic
#7B5EA2 #A27B5E #5EA27B
tetradic
#7B5EA2 #A25E63 #85A25E #5EA29D
square
#7B5EA2 #A25E63 #85A25E #5EA29D
split-complementary
#7B5EA2 #A29D5E #63A25E
monochromatic
#403155 #5E477B #7B5EA2 #9B85B8 #BBACCF

Accessibility & contrast

On white

5.30
#7B5EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#7B5EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5EA2
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5EA2#FFFFFF#000000##FFFFFF
##7B5EA21.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D6BA5
Deuteranopia (green-blind)
#536BA0
Tritanopia (blue-blind)
#746978
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7b5ea2;
/* rgb */ color: rgb(123, 94, 162);
/* oklch */ color: oklch(54.0% 0.108 302.6);
Tailwind
colors: {
  custom: {
    50: '#a28cbe',
    500: '#7b5ea2',
    950: '#000000',
  },
}
SCSS
$custom: #7b5ea2;
$custom-light: #a28cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5ea2",
  "rgb": {
    "r": 123,
    "g": 94,
    "b": 162
  },
  "hsl": {
    "h": 265.588,
    "s": 26.772,
    "l": 50.196
  },
  "oklch": {
    "l": 0.53977,
    "c": 0.10756,
    "h": 302.6
  },
  "luminance": 0.14825
}

Semantic roles & 50–950 ramp

primary
#7B5EA2
secondary
#B0BD9F
accent
#C3659B
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #7B5EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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