#7F59CA#7F59CA

#7F59CA is a mid, vivid violet. Relative luminance 0.159; OKLCH L 55.9% C 0.169 H 296.0°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7F59CA
RGBrgb(127, 89, 202)
HSLhsl(260, 52%, 57%)
HSVhsv(260, 56%, 79%)
CMYKcmyk(37.1%, 55.9%, 0%, 20.8%)
CIE-LABlab(46.87, 40.51, -53.48)
CIE-LCHlch(46.87, 67.09, 307.14°)
OKLaboklab(55.9% 0.074 -0.1517)
OKLCHoklch(55.9% 0.169 296)
XYZxyz(22.9827, 15.9206, 57.7278)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F59CA #A4CA59
analogous
#596CCA #7F59CA #B859CA
triadic
#7F59CA #CA7F59 #59CA7F
tetradic
#7F59CA #CA596C #A4CA59 #59CAB8
square
#7F59CA #CA596C #A4CA59 #59CAB8
split-complementary
#7F59CA #CAB859 #6CCA59
monochromatic
#462980 #5F38AE #7F59CA #A387D9 #C7B6E8

Accessibility & contrast

On white

5.02
#7F59CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#7F59CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F59CA
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F59CA#FFFFFF#000000##FFFFFF
##7F59CA1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2370CE
Deuteranopia (green-blind)
#306EC7
Tritanopia (blue-blind)
#6D7089
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7f59ca;
/* rgb */ color: rgb(127, 89, 202);
/* oklch */ color: oklch(55.9% 0.169 296.0);
Tailwind
colors: {
  custom: {
    50: '#a889db',
    500: '#7f59ca',
    950: '#000000',
  },
}
SCSS
$custom: #7f59ca;
$custom-light: #a889db;
$custom-dark: #000000;
JSON
{
  "hex": "#7f59ca",
  "rgb": {
    "r": 127,
    "g": 89,
    "b": 202
  },
  "hsl": {
    "h": 260.177,
    "s": 51.598,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55896,
    "c": 0.16878,
    "h": 296
  },
  "luminance": 0.15921
}

Semantic roles & 50–950 ramp

primary
#7F59CA
secondary
#C7D6A8
accent
#DB4DAB
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7F59CA

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

Preview Lab → · Contrast checker → · Palette generator →

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