#7F5CE9#7F5CE9

#7F5CE9 is a mid, highly saturated violet. Relative luminance 0.180; OKLCH L 58.5% C 0.203 H 290.1°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7F5CE9
RGBrgb(127, 92, 233)
HSLhsl(255, 76%, 64%)
HSVhsv(255, 61%, 91%)
CMYKcmyk(45.5%, 60.5%, 0%, 8.6%)
CIE-LABlab(49.55, 47.27, -66.78)
CIE-LCHlch(49.55, 81.82, 305.29°)
OKLaboklab(58.51% 0.0699 -0.1908)
OKLCHoklch(58.51% 0.203 290.1)
XYZxyz(27.2834, 18.0485, 79.1212)
Luminance0.1805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CE9 #C6E95C
analogous
#5C7FE9 #7F5CE9 #C65CE9
triadic
#7F5CE9 #E97F5C #5CE97F
tetradic
#7F5CE9 #E95C7F #C6E95C #5CE9C6
square
#7F5CE9 #E95C7F #C6E95C #5CE9C6
split-complementary
#7F5CE9 #E9C65C #7FE95C
monochromatic
#3E18B3 #5526E2 #7F5CE9 #A992F0 #D4C8F8

Accessibility & contrast

On white

4.56
#7F5CE9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#7F5CE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5CE9
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CE9#FFFFFF#000000##000000
##7F5CE91.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EE
Deuteranopia (green-blind)
#0073E6
Tritanopia (blue-blind)
#5E7C9A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f5ce9;
/* rgb */ color: rgb(127, 92, 233);
/* oklch */ color: oklch(58.5% 0.203 290.1);
Tailwind
colors: {
  custom: {
    50: '#ab8cf1',
    500: '#7f5ce9',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ce9;
$custom-light: #ab8cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ce9",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 233
  },
  "hsl": {
    "h": 254.894,
    "s": 76.216,
    "l": 63.725
  },
  "oklch": {
    "l": 0.58515,
    "c": 0.20321,
    "h": 290.1
  },
  "luminance": 0.1805
}

Semantic roles & 50–950 ramp

primary
#7F5CE9
secondary
#DDE9B8
accent
#D80DA6
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5CE9

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

Preview Lab → · Contrast checker → · Palette generator →

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