#7B4EA2#7B4EA2

#7B4EA2 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.2% C 0.135 H 307.0°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#7B4EA2
RGBrgb(123, 78, 162)
HSLhsl(272, 35%, 47%)
HSVhsv(272, 52%, 64%)
CMYKcmyk(24.1%, 51.9%, 0%, 36.5%)
CIE-LABlab(41.64, 35.53, -38.44)
CIE-LCHlch(41.64, 52.34, 312.75°)
OKLaboklab(51.17% 0.0812 -0.1078)
OKLCHoklch(51.17% 0.135 307)
XYZxyz(17.4130, 12.2685, 35.6261)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4EA2 #75A24E
analogous
#514EA2 #7B4EA2 #A24E9F
triadic
#7B4EA2 #A27B4E #4EA27B
tetradic
#7B4EA2 #A2514E #75A24E #4E9FA2
square
#7B4EA2 #A2514E #75A24E #4E9FA2
split-complementary
#7B4EA2 #9FA24E #4EA251
monochromatic
#3C264F #5C3A79 #7B4EA2 #9972BB #B79BCF

Accessibility & contrast

On white

6.08
#7B4EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7B4EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4EA2
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4EA2#FFFFFF#000000##FFFFFF
##7B4EA21.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3661A5
Deuteranopia (green-blind)
#4363A0
Tritanopia (blue-blind)
#755D70
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7b4ea2;
/* rgb */ color: rgb(123, 78, 162);
/* oklch */ color: oklch(51.2% 0.135 307.0);
Tailwind
colors: {
  custom: {
    50: '#a381be',
    500: '#7b4ea2',
    950: '#000000',
  },
}
SCSS
$custom: #7b4ea2;
$custom-light: #a381be;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4ea2",
  "rgb": {
    "r": 123,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 272.143,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51167,
    "c": 0.13494,
    "h": 307
  },
  "luminance": 0.12268
}

Semantic roles & 50–950 ramp

primary
#7B4EA2
secondary
#A4BC90
accent
#CB5D90
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7B4EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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