#7E59CC#7E59CC

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

Color values

HEX#7E59CC
RGBrgb(126, 89, 204)
HSLhsl(259, 53%, 57%)
HSVhsv(259, 56%, 80%)
CMYKcmyk(38.2%, 56.4%, 0%, 20%)
CIE-LABlab(46.90, 40.81, -54.59)
CIE-LCHlch(46.90, 68.16, 306.78°)
OKLaboklab(55.93% 0.0727 -0.155)
OKLCHoklch(55.93% 0.171 295.1)
XYZxyz(23.0728, 15.9395, 58.9760)
Luminance0.1594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E59CC #A7CC59
analogous
#596ECC #7E59CC #B759CC
triadic
#7E59CC #CC7E59 #59CC7E
tetradic
#7E59CC #CC596E #A7CC59 #59CCB7
square
#7E59CC #CC596E #A7CC59 #59CCB7
split-complementary
#7E59CC #CCB759 #6ECC59
monochromatic
#452883 #5E36B1 #7E59CC #A288DA #C7B7E9

Accessibility & contrast

On white

5.01
#7E59CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#7E59CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E59CC
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E59CC#FFFFFF#000000##FFFFFF
##7E59CC1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E70D0
Deuteranopia (green-blind)
#2C6DC9
Tritanopia (blue-blind)
#6B718A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7e59cc;
/* rgb */ color: rgb(126, 89, 204);
/* oklch */ color: oklch(55.9% 0.171 295.1);
Tailwind
colors: {
  custom: {
    50: '#a889dc',
    500: '#7e59cc',
    950: '#000000',
  },
}
SCSS
$custom: #7e59cc;
$custom-light: #a889dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e59cc",
  "rgb": {
    "r": 126,
    "g": 89,
    "b": 204
  },
  "hsl": {
    "h": 259.304,
    "s": 52.995,
    "l": 57.451
  },
  "oklch": {
    "l": 0.55931,
    "c": 0.17122,
    "h": 295.1
  },
  "luminance": 0.1594
}

Semantic roles & 50–950 ramp

primary
#7E59CC
secondary
#C9D8A9
accent
#DC4BAE
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E59CC

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

Preview Lab → · Contrast checker → · Palette generator →

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