#7F59CE#7F59CE

#7F59CE is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.2% C 0.174 H 295.2°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7F59CE
RGBrgb(127, 89, 206)
HSLhsl(259, 54%, 58%)
HSVhsv(259, 57%, 81%)
CMYKcmyk(38.3%, 56.8%, 0%, 19.2%)
CIE-LABlab(47.12, 41.58, -55.37)
CIE-LCHlch(47.12, 69.24, 306.90°)
OKLaboklab(56.16% 0.074 -0.1573)
OKLCHoklch(56.16% 0.174 295.2)
XYZxyz(23.4625, 16.1125, 60.2544)
Luminance0.1611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F59CE #A8CE59
analogous
#596DCE #7F59CE #B959CE
triadic
#7F59CE #CE7F59 #59CE7F
tetradic
#7F59CE #CE596D #A8CE59 #59CEB9
square
#7F59CE #CE596D #A8CE59 #59CEB9
split-complementary
#7F59CE #CEB959 #6DCE59
monochromatic
#462785 #5F35B5 #7F59CE #A388DC #C8B8EA

Accessibility & contrast

On white

4.97
#7F59CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7F59CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F59CE
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F59CE#FFFFFF#000000##FFFFFF
##7F59CE1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B71D2
Deuteranopia (green-blind)
#2A6ECB
Tritanopia (blue-blind)
#6B728B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f59ce;
/* rgb */ color: rgb(127, 89, 206);
/* oklch */ color: oklch(56.2% 0.174 295.2);
Tailwind
colors: {
  custom: {
    50: '#a989de',
    500: '#7f59ce',
    950: '#000000',
  },
}
SCSS
$custom: #7f59ce;
$custom-light: #a989de;
$custom-dark: #000000;
JSON
{
  "hex": "#7f59ce",
  "rgb": {
    "r": 127,
    "g": 89,
    "b": 206
  },
  "hsl": {
    "h": 259.487,
    "s": 54.419,
    "l": 57.843
  },
  "oklch": {
    "l": 0.56162,
    "c": 0.17381,
    "h": 295.2
  },
  "luminance": 0.16113
}

Semantic roles & 50–950 ramp

primary
#7F59CE
secondary
#CAD9AA
accent
#DE4AAE
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7F59CE

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

Preview Lab → · Contrast checker → · Palette generator →

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