#7F57CC#7F57CC

#7F57CC is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.7% C 0.174 H 296.0°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7F57CC
RGBrgb(127, 87, 204)
HSLhsl(261, 53%, 57%)
HSVhsv(261, 57%, 80%)
CMYKcmyk(37.7%, 57.4%, 0%, 20%)
CIE-LABlab(46.56, 42.17, -55.12)
CIE-LCHlch(46.56, 69.40, 307.42°)
OKLaboklab(55.71% 0.0764 -0.1565)
OKLCHoklch(55.71% 0.174 296)
XYZxyz(23.0569, 15.6876, 58.9283)
Luminance0.1569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F57CC #A4CC57
analogous
#576ACC #7F57CC #BA57CC
triadic
#7F57CC #CC7F57 #57CC7F
tetradic
#7F57CC #CC576A #A4CC57 #57CCBA
square
#7F57CC #CC576A #A4CC57 #57CCBA
split-complementary
#7F57CC #CCBA57 #6ACC57
monochromatic
#462781 #5F36B0 #7F57CC #A386DA #C7B5E9

Accessibility & contrast

On white

5.08
#7F57CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#7F57CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F57CC
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F57CC#FFFFFF#000000##FFFFFF
##7F57CC1.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#186FD0
Deuteranopia (green-blind)
#296DC9
Tritanopia (blue-blind)
#6C7089
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7f57cc;
/* rgb */ color: rgb(127, 87, 204);
/* oklch */ color: oklch(55.7% 0.174 296.0);
Tailwind
colors: {
  custom: {
    50: '#a988dc',
    500: '#7f57cc',
    950: '#000000',
  },
}
SCSS
$custom: #7f57cc;
$custom-light: #a988dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f57cc",
  "rgb": {
    "r": 127,
    "g": 87,
    "b": 204
  },
  "hsl": {
    "h": 260.513,
    "s": 53.425,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55709,
    "c": 0.1742,
    "h": 296
  },
  "luminance": 0.15688
}

Semantic roles & 50–950 ramp

primary
#7F57CC
secondary
#C7D7A8
accent
#DD4BAB
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7F57CC

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

Preview Lab → · Contrast checker → · Palette generator →

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