#7C5DA2#7C5DA2

#7C5DA2 is a mid, moderate violet. Relative luminance 0.147; OKLCH L 53.9% C 0.110 H 303.7°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7C5DA2
RGBrgb(124, 93, 162)
HSLhsl(267, 27%, 50%)
HSVhsv(267, 43%, 64%)
CMYKcmyk(23.5%, 42.6%, 0%, 36.5%)
CIE-LABlab(45.25, 27.03, -32.73)
CIE-LCHlch(45.25, 42.45, 309.56°)
OKLaboklab(53.89% 0.0607 -0.0912)
OKLCHoklch(53.89% 0.11 303.7)
XYZxyz(18.7467, 14.7225, 36.0295)
Luminance0.1472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5DA2 #83A25D
analogous
#5D60A2 #7C5DA2 #9F5DA2
triadic
#7C5DA2 #A27C5D #5DA27C
tetradic
#7C5DA2 #A25D60 #83A25D #5DA29F
square
#7C5DA2 #A25D60 #83A25D #5DA29F
split-complementary
#7C5DA2 #A29F5D #60A25D
monochromatic
#403054 #5E477B #7C5DA2 #9B84B8 #BBABCF

Accessibility & contrast

On white

5.32
#7C5DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#7C5DA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5DA2
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5DA2#FFFFFF#000000##FFFFFF
##7C5DA21.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c5da2;
/* rgb */ color: rgb(124, 93, 162);
/* oklch */ color: oklch(53.9% 0.110 303.7);
Tailwind
colors: {
  custom: {
    50: '#a38bbe',
    500: '#7c5da2',
    950: '#000000',
  },
}
SCSS
$custom: #7c5da2;
$custom-light: #a38bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5da2",
  "rgb": {
    "r": 124,
    "g": 93,
    "b": 162
  },
  "hsl": {
    "h": 266.957,
    "s": 27.059,
    "l": 50
  },
  "oklch": {
    "l": 0.53893,
    "c": 0.10956,
    "h": 303.7
  },
  "luminance": 0.14722
}

Semantic roles & 50–950 ramp

primary
#7C5DA2
secondary
#AFBD9E
accent
#C36499
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #7C5DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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