#7F57DB#7F57DB

#7F57DB is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.7% C 0.193 H 293.2°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7F57DB
RGBrgb(127, 87, 219)
HSLhsl(258, 65%, 60%)
HSVhsv(258, 60%, 86%)
CMYKcmyk(42%, 60.3%, 0%, 14.1%)
CIE-LABlab(47.55, 46.20, -62.11)
CIE-LCHlch(47.55, 77.40, 306.64°)
OKLaboklab(56.75% 0.076 -0.1771)
OKLCHoklch(56.75% 0.193 293.2)
XYZxyz(24.9433, 16.4422, 68.8636)
Luminance0.1644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F57DB #B3DB57
analogous
#5771DB #7F57DB #C157DB
triadic
#7F57DB #DB7F57 #57DB7F
tetradic
#7F57DB #DB5771 #B3DB57 #57DBC1
square
#7F57DB #DB5771 #B3DB57 #57DBC1
split-complementary
#7F57DB #DBC157 #71DB57
monochromatic
#442097 #5B2BCA #7F57DB #A589E6 #CCBCF1

Accessibility & contrast

On white

4.90
#7F57DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#7F57DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F57DB
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F57DB#FFFFFF#000000##FFFFFF
##7F57DB1.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#006ED8
Tritanopia (blue-blind)
#667591
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f57db;
/* rgb */ color: rgb(127, 87, 219);
/* oklch */ color: oklch(56.7% 0.193 293.2);
Tailwind
colors: {
  custom: {
    50: '#aa88e7',
    500: '#7f57db',
    950: '#000000',
  },
}
SCSS
$custom: #7f57db;
$custom-light: #aa88e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f57db",
  "rgb": {
    "r": 127,
    "g": 87,
    "b": 219
  },
  "hsl": {
    "h": 258.182,
    "s": 64.706,
    "l": 60
  },
  "oklch": {
    "l": 0.56747,
    "c": 0.19272,
    "h": 293.2
  },
  "luminance": 0.16443
}

Semantic roles & 50–950 ramp

primary
#7F57DB
secondary
#D1E0AD
accent
#E840B5
background
#FAF8FE
surface
#F5F0FC
border
#CFCBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F57DB

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

Preview Lab → · Contrast checker → · Palette generator →

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