#7F5EEC#7F5EEC

#7F5EEC is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.0% C 0.204 H 289.3°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7F5EEC
RGBrgb(127, 94, 236)
HSLhsl(254, 79%, 65%)
HSVhsv(254, 60%, 93%)
CMYKcmyk(46.2%, 60.2%, 0%, 7.5%)
CIE-LABlab(50.18, 46.99, -67.45)
CIE-LCHlch(50.18, 82.20, 304.86°)
OKLaboklab(59.04% 0.0676 -0.1928)
OKLCHoklch(59.04% 0.204 289.3)
XYZxyz(27.8911, 18.5725, 81.4559)
Luminance0.1857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5EEC #CBEC5E
analogous
#5E84EC #7F5EEC #C65EEC
triadic
#7F5EEC #EC7F5E #5EEC7F
tetradic
#7F5EEC #EC5E84 #CBEC5E #5EECC6
square
#7F5EEC #EC5E84 #CBEC5E #5EECC6
split-complementary
#7F5EEC #ECC65E #84EC5E
monochromatic
#3C16BA #5327E6 #7F5EEC #AB95F2 #D6CBF9

Accessibility & contrast

On white

4.45
#7F5EEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#7F5EEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5EEC
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5EEC#FFFFFF#000000##000000
##7F5EEC1.004.454.714.71
#FFFFFF4.451.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF1
Deuteranopia (green-blind)
#0074E9
Tritanopia (blue-blind)
#5C7F9C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7f5eec;
/* rgb */ color: rgb(127, 94, 236);
/* oklch */ color: oklch(59.0% 0.204 289.3);
Tailwind
colors: {
  custom: {
    50: '#ab8df3',
    500: '#7f5eec',
    950: '#000000',
  },
}
SCSS
$custom: #7f5eec;
$custom-light: #ab8df3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5eec",
  "rgb": {
    "r": 127,
    "g": 94,
    "b": 236
  },
  "hsl": {
    "h": 253.944,
    "s": 78.889,
    "l": 64.706
  },
  "oklch": {
    "l": 0.59039,
    "c": 0.20429,
    "h": 289.3
  },
  "luminance": 0.18574
}

Semantic roles & 50–950 ramp

primary
#7F5EEC
secondary
#E0EBBB
accent
#DB0AAB
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5EEC

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

Preview Lab → · Contrast checker → · Palette generator →

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