#7F5AA2#7F5AA2

#7F5AA2 is a mid, moderate violet. Relative luminance 0.144; OKLCH L 53.7% C 0.116 H 306.6°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#7F5AA2
RGBrgb(127, 90, 162)
HSLhsl(271, 29%, 49%)
HSVhsv(271, 44%, 64%)
CMYKcmyk(21.6%, 44.4%, 0%, 36.5%)
CIE-LABlab(44.85, 29.71, -33.34)
CIE-LCHlch(44.85, 44.66, 311.71°)
OKLaboklab(53.66% 0.069 -0.0929)
OKLCHoklch(53.66% 0.116 306.6)
XYZxyz(18.9288, 14.4331, 35.9641)
Luminance0.1443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5AA2 #7DA25A
analogous
#5B5AA2 #7F5AA2 #A25AA1
triadic
#7F5AA2 #A27F5A #5AA27F
tetradic
#7F5AA2 #A25B5A #7DA25A #5AA1A2
square
#7F5AA2 #A25B5A #7DA25A #5AA1A2
split-complementary
#7F5AA2 #A1A25A #5AA25B
monochromatic
#412E53 #60447B #7F5AA2 #9D80B9 #BCA8CF

Accessibility & contrast

On white

5.40
#7F5AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7F5AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5AA2
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5AA2#FFFFFF#000000##FFFFFF
##7F5AA21.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4969A5
Deuteranopia (green-blind)
#526AA0
Tritanopia (blue-blind)
#7A6676
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f5aa2;
/* rgb */ color: rgb(127, 90, 162);
/* oklch */ color: oklch(53.7% 0.116 306.6);
Tailwind
colors: {
  custom: {
    50: '#a589be',
    500: '#7f5aa2',
    950: '#000000',
  },
}
SCSS
$custom: #7f5aa2;
$custom-light: #a589be;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5aa2",
  "rgb": {
    "r": 127,
    "g": 90,
    "b": 162
  },
  "hsl": {
    "h": 270.833,
    "s": 28.571,
    "l": 49.412
  },
  "oklch": {
    "l": 0.53663,
    "c": 0.11568,
    "h": 306.6
  },
  "luminance": 0.14433
}

Semantic roles & 50–950 ramp

primary
#7F5AA2
secondary
#ABBD9B
accent
#C56393
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#0F0B12
muted
#7F7C81

Preview Lab

Preview with #7F5AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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