#7F59CC#7F59CC

#7F59CC is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.0% C 0.171 H 295.6°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7F59CC
RGBrgb(127, 89, 204)
HSLhsl(260, 53%, 57%)
HSVhsv(260, 56%, 80%)
CMYKcmyk(37.7%, 56.4%, 0%, 20%)
CIE-LABlab(47.00, 41.04, -54.42)
CIE-LCHlch(47.00, 68.16, 307.02°)
OKLaboklab(56.03% 0.074 -0.1545)
OKLCHoklch(56.03% 0.171 295.6)
XYZxyz(23.2210, 16.0160, 58.9830)
Luminance0.1602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F59CC #A6CC59
analogous
#596DCC #7F59CC #B859CC
triadic
#7F59CC #CC7F59 #59CC7F
tetradic
#7F59CC #CC596D #A6CC59 #59CCB8
square
#7F59CC #CC596D #A6CC59 #59CCB8
split-complementary
#7F59CC #CCB859 #6DCC59
monochromatic
#462883 #5F36B1 #7F59CC #A388DA #C7B7E9

Accessibility & contrast

On white

5.00
#7F59CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#7F59CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F59CC
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F59CC#FFFFFF#000000##FFFFFF
##7F59CC1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F70D0
Deuteranopia (green-blind)
#2D6EC9
Tritanopia (blue-blind)
#6C718A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7f59cc;
/* rgb */ color: rgb(127, 89, 204);
/* oklch */ color: oklch(56.0% 0.171 295.6);
Tailwind
colors: {
  custom: {
    50: '#a889dc',
    500: '#7f59cc',
    950: '#000000',
  },
}
SCSS
$custom: #7f59cc;
$custom-light: #a889dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f59cc",
  "rgb": {
    "r": 127,
    "g": 89,
    "b": 204
  },
  "hsl": {
    "h": 259.826,
    "s": 52.995,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56028,
    "c": 0.17131,
    "h": 295.6
  },
  "luminance": 0.16016
}

Semantic roles & 50–950 ramp

primary
#7F59CC
secondary
#C8D8A9
accent
#DC4BAC
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7F59CC

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

Preview Lab → · Contrast checker → · Palette generator →

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