#7C5CA2#7C5CA2

#7C5CA2 is a mid, moderate violet. Relative luminance 0.145; OKLCH L 53.7% C 0.111 H 304.0°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#7C5CA2
RGBrgb(124, 92, 162)
HSLhsl(267, 28%, 50%)
HSVhsv(267, 43%, 64%)
CMYKcmyk(23.5%, 43.2%, 0%, 36.5%)
CIE-LABlab(45.01, 27.63, -33.11)
CIE-LCHlch(45.01, 43.12, 309.84°)
OKLaboklab(53.71% 0.0622 -0.0923)
OKLCHoklch(53.71% 0.111 304)
XYZxyz(18.6595, 14.5481, 36.0004)
Luminance0.1455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5CA2 #82A25C
analogous
#5C5FA2 #7C5CA2 #9F5CA2
triadic
#7C5CA2 #A27C5C #5CA27C
tetradic
#7C5CA2 #A25C5F #82A25C #5CA29F
square
#7C5CA2 #A25C5F #82A25C #5CA29F
split-complementary
#7C5CA2 #A29F5C #5FA25C
monochromatic
#403054 #5E467B #7C5CA2 #9B83B8 #BBAACF

Accessibility & contrast

On white

5.37
#7C5CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#7C5CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5CA2
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5CA2#FFFFFF#000000##FFFFFF
##7C5CA21.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A6AA5
Deuteranopia (green-blind)
#526AA0
Tritanopia (blue-blind)
#766877
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7c5ca2;
/* rgb */ color: rgb(124, 92, 162);
/* oklch */ color: oklch(53.7% 0.111 304.0);
Tailwind
colors: {
  custom: {
    50: '#a38abe',
    500: '#7c5ca2',
    950: '#000000',
  },
}
SCSS
$custom: #7c5ca2;
$custom-light: #a38abe;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5ca2",
  "rgb": {
    "r": 124,
    "g": 92,
    "b": 162
  },
  "hsl": {
    "h": 267.429,
    "s": 27.559,
    "l": 49.804
  },
  "oklch": {
    "l": 0.5371,
    "c": 0.1113,
    "h": 304
  },
  "luminance": 0.14548
}

Semantic roles & 50–950 ramp

primary
#7C5CA2
secondary
#AEBD9D
accent
#C46498
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #7C5CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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