#7F5DEE#7F5DEE

#7F5DEE is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.0% C 0.208 H 289.2°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7F5DEE
RGBrgb(127, 93, 238)
HSLhsl(254, 81%, 65%)
HSVhsv(254, 61%, 93%)
CMYKcmyk(46.6%, 60.9%, 0%, 6.7%)
CIE-LABlab(50.11, 48.10, -68.69)
CIE-LCHlch(50.11, 83.86, 305.00°)
OKLaboklab(59.03% 0.0685 -0.1964)
OKLCHoklch(59.03% 0.208 289.2)
XYZxyz(28.0950, 18.5127, 82.9653)
Luminance0.1851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5DEE #CCEE5D
analogous
#5D83EE #7F5DEE #C85DEE
triadic
#7F5DEE #EE7F5D #5DEE7F
tetradic
#7F5DEE #EE5D83 #CCEE5D #5DEEC8
square
#7F5DEE #EE5D83 #CCEE5D #5DEEC8
split-complementary
#7F5DEE #EEC85D #83EE5D
monochromatic
#3B14BD #5326E8 #7F5DEE #AB94F4 #D7CCFA

Accessibility & contrast

On white

4.47
#7F5DEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#7F5DEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5DEE
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5DEE#FFFFFF#000000##000000
##7F5DEE1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f5dee;
/* rgb */ color: rgb(127, 93, 238);
/* oklch */ color: oklch(59.0% 0.208 289.2);
Tailwind
colors: {
  custom: {
    50: '#ac8cf4',
    500: '#7f5dee',
    950: '#000000',
  },
}
SCSS
$custom: #7f5dee;
$custom-light: #ac8cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5dee",
  "rgb": {
    "r": 127,
    "g": 93,
    "b": 238
  },
  "hsl": {
    "h": 254.069,
    "s": 81.006,
    "l": 64.902
  },
  "oklch": {
    "l": 0.59031,
    "c": 0.20803,
    "h": 289.2
  },
  "luminance": 0.18514
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F5DEE

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

Preview Lab → · Contrast checker → · Palette generator →

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