#7F58CC#7F58CC

#7F58CC is a mid, vivid violet. Relative luminance 0.159; OKLCH L 55.9% C 0.173 H 295.8°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7F58CC
RGBrgb(127, 88, 204)
HSLhsl(260, 53%, 57%)
HSVhsv(260, 57%, 80%)
CMYKcmyk(37.7%, 56.9%, 0%, 20%)
CIE-LABlab(46.78, 41.61, -54.77)
CIE-LCHlch(46.78, 68.78, 307.22°)
OKLaboklab(55.87% 0.0752 -0.1555)
OKLCHoklch(55.87% 0.173 295.8)
XYZxyz(23.1384, 15.8507, 58.9554)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F58CC #A5CC58
analogous
#586BCC #7F58CC #B958CC
triadic
#7F58CC #CC7F58 #58CC7F
tetradic
#7F58CC #CC586B #A5CC58 #58CCB9
square
#7F58CC #CC586B #A5CC58 #58CCB9
split-complementary
#7F58CC #CCB958 #6BCC58
monochromatic
#462882 #5F36B1 #7F58CC #A387DA #C7B6E9

Accessibility & contrast

On white

5.04
#7F58CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7F58CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F58CC
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F58CC#FFFFFF#000000##FFFFFF
##7F58CC1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C70D0
Deuteranopia (green-blind)
#2B6DC9
Tritanopia (blue-blind)
#6C7089
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7f58cc;
/* rgb */ color: rgb(127, 88, 204);
/* oklch */ color: oklch(55.9% 0.173 295.8);
Tailwind
colors: {
  custom: {
    50: '#a988dc',
    500: '#7f58cc',
    950: '#000000',
  },
}
SCSS
$custom: #7f58cc;
$custom-light: #a988dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f58cc",
  "rgb": {
    "r": 127,
    "g": 88,
    "b": 204
  },
  "hsl": {
    "h": 260.172,
    "s": 53.211,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55868,
    "c": 0.17276,
    "h": 295.8
  },
  "luminance": 0.15851
}

Semantic roles & 50–950 ramp

primary
#7F58CC
secondary
#C8D7A8
accent
#DD4BAC
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7F58CC

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

Preview Lab → · Contrast checker → · Palette generator →

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