#7F5AEA#7F5AEA

#7F5AEA is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.3% C 0.207 H 290.3°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7F5AEA
RGBrgb(127, 90, 234)
HSLhsl(255, 77%, 64%)
HSVhsv(255, 62%, 92%)
CMYKcmyk(45.7%, 61.5%, 0%, 8.2%)
CIE-LABlab(49.21, 48.65, -67.91)
CIE-LCHlch(49.21, 83.53, 305.62°)
OKLaboklab(58.28% 0.0719 -0.1941)
OKLCHoklch(58.28% 0.207 290.3)
XYZxyz(27.2557, 17.7639, 79.8186)
Luminance0.1777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5AEA #C5EA5A
analogous
#5A7DEA #7F5AEA #C75AEA
triadic
#7F5AEA #EA7F5A #5AEA7F
tetradic
#7F5AEA #EA5A7D #C5EA5A #5AEAC7
square
#7F5AEA #EA5A7D #C5EA5A #5AEAC7
split-complementary
#7F5AEA #EAC75A #7DEA5A
monochromatic
#3F17B3 #5524E3 #7F5AEA #A990F1 #D3C7F8

Accessibility & contrast

On white

4.61
#7F5AEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#7F5AEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5AEA
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5AEA#FFFFFF#000000##FFFFFF
##7F5AEA1.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078EF
Deuteranopia (green-blind)
#0072E7
Tritanopia (blue-blind)
#5E7C9A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7f5aea;
/* rgb */ color: rgb(127, 90, 234);
/* oklch */ color: oklch(58.3% 0.207 290.3);
Tailwind
colors: {
  custom: {
    50: '#ab8af2',
    500: '#7f5aea',
    950: '#000000',
  },
}
SCSS
$custom: #7f5aea;
$custom-light: #ab8af2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5aea",
  "rgb": {
    "r": 127,
    "g": 90,
    "b": 234
  },
  "hsl": {
    "h": 255.417,
    "s": 77.419,
    "l": 63.529
  },
  "oklch": {
    "l": 0.58284,
    "c": 0.20703,
    "h": 290.3
  },
  "luminance": 0.17765
}

Semantic roles & 50–950 ramp

primary
#7F5AEA
secondary
#DCE9B6
accent
#DA0CA5
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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