#7F57EA#7F57EA

#7F57EA is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 57.8% C 0.211 H 290.8°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#7F57EA
RGBrgb(127, 87, 234)
HSLhsl(256, 78%, 63%)
HSVhsv(256, 63%, 92%)
CMYKcmyk(45.7%, 62.8%, 0%, 8.2%)
CIE-LABlab(48.60, 50.28, -68.90)
CIE-LCHlch(48.60, 85.30, 306.12°)
OKLaboklab(57.84% 0.075 -0.1971)
OKLCHoklch(57.84% 0.211 290.8)
XYZxyz(27.0077, 17.2680, 79.7360)
Luminance0.1727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F57EA #C2EA57
analogous
#5778EA #7F57EA #C957EA
triadic
#7F57EA #EA7F57 #57EA7F
tetradic
#7F57EA #EA5778 #C2EA57 #57EAC9
square
#7F57EA #EA5778 #C2EA57 #57EAC9
split-complementary
#7F57EA #EAC957 #78EA57
monochromatic
#4016B1 #5621E3 #7F57EA #A88DF1 #D2C4F8

Accessibility & contrast

On white

4.72
#7F57EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#7F57EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F57EA
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F57EA#FFFFFF#000000##FFFFFF
##7F57EA1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076EF
Deuteranopia (green-blind)
#0070E7
Tritanopia (blue-blind)
#5E7A99
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f57ea;
/* rgb */ color: rgb(127, 87, 234);
/* oklch */ color: oklch(57.8% 0.211 290.8);
Tailwind
colors: {
  custom: {
    50: '#ac88f2',
    500: '#7f57ea',
    950: '#000000',
  },
}
SCSS
$custom: #7f57ea;
$custom-light: #ac88f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f57ea",
  "rgb": {
    "r": 127,
    "g": 87,
    "b": 234
  },
  "hsl": {
    "h": 256.327,
    "s": 77.778,
    "l": 62.941
  },
  "oklch": {
    "l": 0.57839,
    "c": 0.21085,
    "h": 290.8
  },
  "luminance": 0.17269
}

Semantic roles & 50–950 ramp

primary
#7F57EA
secondary
#DAE9B4
accent
#DA0BA2
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F57EA

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

Preview Lab → · Contrast checker → · Palette generator →

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