#7F57EB#7F57EB

#7F57EB is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 57.9% C 0.212 H 290.7°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7F57EB
RGBrgb(127, 87, 235)
HSLhsl(256, 79%, 63%)
HSVhsv(256, 63%, 92%)
CMYKcmyk(46%, 63%, 0%, 7.8%)
CIE-LABlab(48.67, 50.56, -69.35)
CIE-LCHlch(48.67, 85.82, 306.10°)
OKLaboklab(57.91% 0.0749 -0.1984)
OKLCHoklch(57.91% 0.212 290.7)
XYZxyz(27.1518, 17.3256, 80.4947)
Luminance0.1733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F57EB #C3EB57
analogous
#5779EB #7F57EB #C957EB
triadic
#7F57EB #EB7F57 #57EB7F
tetradic
#7F57EB #EB5779 #C3EB57 #57EBC9
square
#7F57EB #EB5779 #C3EB57 #57EBC9
split-complementary
#7F57EB #EBC957 #79EB57
monochromatic
#4015B2 #5520E4 #7F57EB #A98EF2 #D2C4F8

Accessibility & contrast

On white

4.70
#7F57EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#7F57EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F57EB
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F57EB#FFFFFF#000000##FFFFFF
##7F57EB1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F0
Deuteranopia (green-blind)
#0070E8
Tritanopia (blue-blind)
#5D7A99
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7f57eb;
/* rgb */ color: rgb(127, 87, 235);
/* oklch */ color: oklch(57.9% 0.212 290.7);
Tailwind
colors: {
  custom: {
    50: '#ac88f2',
    500: '#7f57eb',
    950: '#000000',
  },
}
SCSS
$custom: #7f57eb;
$custom-light: #ac88f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f57eb",
  "rgb": {
    "r": 127,
    "g": 87,
    "b": 235
  },
  "hsl": {
    "h": 256.216,
    "s": 78.723,
    "l": 63.137
  },
  "oklch": {
    "l": 0.57914,
    "c": 0.21205,
    "h": 290.7
  },
  "luminance": 0.17327
}

Semantic roles & 50–950 ramp

primary
#7F57EB
secondary
#DBE9B4
accent
#DB0AA3
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F57EB

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

Preview Lab → · Contrast checker → · Palette generator →

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