#7F5CEC#7F5CEC

#7F5CEC is a mid, highly saturated violet. Relative luminance 0.182; OKLCH L 58.7% C 0.207 H 289.7°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#7F5CEC
RGBrgb(127, 92, 236)
HSLhsl(255, 79%, 64%)
HSVhsv(255, 61%, 93%)
CMYKcmyk(46.2%, 61%, 0%, 7.5%)
CIE-LABlab(49.76, 48.10, -68.13)
CIE-LCHlch(49.76, 83.40, 305.22°)
OKLaboklab(58.73% 0.0697 -0.1948)
OKLCHoklch(58.73% 0.207 289.7)
XYZxyz(27.7156, 18.2214, 81.3974)
Luminance0.1822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CEC #C9EC5C
analogous
#5C81EC #7F5CEC #C75CEC
triadic
#7F5CEC #EC7F5C #5CEC7F
tetradic
#7F5CEC #EC5C81 #C9EC5C #5CECC7
square
#7F5CEC #EC5C81 #C9EC5C #5CECC7
split-complementary
#7F5CEC #ECC75C #81EC5C
monochromatic
#3D15B8 #5425E6 #7F5CEC #AA93F2 #D5CAF9

Accessibility & contrast

On white

4.52
#7F5CEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#7F5CEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5CEC
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CEC#FFFFFF#000000##000000
##7F5CEC1.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F1
Deuteranopia (green-blind)
#0073E9
Tritanopia (blue-blind)
#5D7D9B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f5cec;
/* rgb */ color: rgb(127, 92, 236);
/* oklch */ color: oklch(58.7% 0.207 289.7);
Tailwind
colors: {
  custom: {
    50: '#ac8cf3',
    500: '#7f5cec',
    950: '#000000',
  },
}
SCSS
$custom: #7f5cec;
$custom-light: #ac8cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5cec",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 236
  },
  "hsl": {
    "h": 254.583,
    "s": 79.121,
    "l": 64.314
  },
  "oklch": {
    "l": 0.58733,
    "c": 0.20687,
    "h": 289.7
  },
  "luminance": 0.18222
}

Semantic roles & 50–950 ramp

primary
#7F5CEC
secondary
#DFEBB9
accent
#DB0AA9
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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