#7F5EEE#7F5EEE

#7F5EEE is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.2% C 0.207 H 289.0°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#7F5EEE
RGBrgb(127, 94, 238)
HSLhsl(254, 81%, 65%)
HSVhsv(254, 61%, 93%)
CMYKcmyk(46.6%, 60.5%, 0%, 6.7%)
CIE-LABlab(50.32, 47.55, -68.35)
CIE-LCHlch(50.32, 83.26, 304.83°)
OKLaboklab(59.18% 0.0675 -0.1954)
OKLCHoklch(59.18% 0.207 289)
XYZxyz(28.1833, 18.6894, 82.9948)
Luminance0.1869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5EEE #CDEE5E
analogous
#5E85EE #7F5EEE #C75EEE
triadic
#7F5EEE #EE7F5E #5EEE7F
tetradic
#7F5EEE #EE5E85 #CDEE5E #5EEEC7
square
#7F5EEE #EE5E85 #CDEE5E #5EEEC7
split-complementary
#7F5EEE #EEC75E #85EE5E
monochromatic
#3B14BE #5327E8 #7F5EEE #AB95F4 #D7CDFA

Accessibility & contrast

On white

4.43
#7F5EEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#7F5EEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5EEE
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5EEE#FFFFFF#000000##000000
##7F5EEE1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF3
Deuteranopia (green-blind)
#0074EB
Tritanopia (blue-blind)
#5B7F9D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7f5eee;
/* rgb */ color: rgb(127, 94, 238);
/* oklch */ color: oklch(59.2% 0.207 289.0);
Tailwind
colors: {
  custom: {
    50: '#ac8df4',
    500: '#7f5eee',
    950: '#000000',
  },
}
SCSS
$custom: #7f5eee;
$custom-light: #ac8df4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5eee",
  "rgb": {
    "r": 127,
    "g": 94,
    "b": 238
  },
  "hsl": {
    "h": 253.75,
    "s": 80.899,
    "l": 65.098
  },
  "oklch": {
    "l": 0.59184,
    "c": 0.20675,
    "h": 289
  },
  "luminance": 0.1869
}

Semantic roles & 50–950 ramp

primary
#7F5EEE
secondary
#E1ECBB
accent
#DD08AC
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5EEE

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

Preview Lab → · Contrast checker → · Palette generator →

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