#7F57D2#7F57D2

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

Color values

HEX#7F57D2
RGBrgb(127, 87, 210)
HSLhsl(260, 58%, 58%)
HSVhsv(260, 59%, 82%)
CMYKcmyk(39.5%, 58.6%, 0%, 17.6%)
CIE-LABlab(46.95, 43.77, -57.94)
CIE-LCHlch(46.95, 72.62, 307.07°)
OKLaboklab(56.12% 0.0764 -0.1648)
OKLCHoklch(56.12% 0.182 294.9)
XYZxyz(23.7904, 15.9810, 62.7915)
Luminance0.1598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F57D2 #AAD257
analogous
#576CD2 #7F57D2 #BC57D2
triadic
#7F57D2 #D27F57 #57D27F
tetradic
#7F57D2 #D2576C #AAD257 #57D2BC
square
#7F57D2 #D2576C #AAD257 #57D2BC
split-complementary
#7F57D2 #D2BC57 #6CD257
monochromatic
#46258A #5E32BA #7F57D2 #A487DF #C9B8EC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F57D2#FFFFFF#000000##FFFFFF
##7F57D21.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)
#0270D6
Deuteranopia (green-blind)
#1E6DCF
Tritanopia (blue-blind)
#6A728C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7f57d2;
/* rgb */ color: rgb(127, 87, 210);
/* oklch */ color: oklch(56.1% 0.182 294.9);
Tailwind
colors: {
  custom: {
    50: '#a988e0',
    500: '#7f57d2',
    950: '#000000',
  },
}
SCSS
$custom: #7f57d2;
$custom-light: #a988e0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f57d2",
  "rgb": {
    "r": 127,
    "g": 87,
    "b": 210
  },
  "hsl": {
    "h": 259.512,
    "s": 57.746,
    "l": 58.235
  },
  "oklch": {
    "l": 0.56118,
    "c": 0.18166,
    "h": 294.9
  },
  "luminance": 0.15982
}

Semantic roles & 50–950 ramp

primary
#7F57D2
secondary
#CBDBAA
accent
#E147AF
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7F57D2

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

Preview Lab → · Contrast checker → · Palette generator →

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