#7F5CEE#7F5CEE

#7F5CEE is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 58.9% C 0.209 H 289.4°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#7F5CEE
RGBrgb(127, 92, 238)
HSLhsl(254, 81%, 65%)
HSVhsv(254, 61%, 93%)
CMYKcmyk(46.6%, 61.3%, 0%, 6.7%)
CIE-LABlab(49.90, 48.66, -69.02)
CIE-LCHlch(49.90, 84.45, 305.18°)
OKLaboklab(58.88% 0.0695 -0.1974)
OKLCHoklch(58.88% 0.209 289.4)
XYZxyz(28.0078, 18.3383, 82.9363)
Luminance0.1834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CEE #CBEE5C
analogous
#5C82EE #7F5CEE #C85CEE
triadic
#7F5CEE #EE7F5C #5CEE7F
tetradic
#7F5CEE #EE5C82 #CBEE5C #5CEEC8
square
#7F5CEE #EE5C82 #CBEE5C #5CEEC8
split-complementary
#7F5CEE #EEC85C #82EE5C
monochromatic
#3C14BC #5325E8 #7F5CEE #AB93F4 #D6CBFA

Accessibility & contrast

On white

4.50
#7F5CEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#7F5CEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5CEE
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CEE#FFFFFF#000000##000000
##7F5CEE1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f5cee;
/* rgb */ color: rgb(127, 92, 238);
/* oklch */ color: oklch(58.9% 0.209 289.4);
Tailwind
colors: {
  custom: {
    50: '#ac8cf4',
    500: '#7f5cee',
    950: '#000000',
  },
}
SCSS
$custom: #7f5cee;
$custom-light: #ac8cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5cee",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 238
  },
  "hsl": {
    "h": 254.384,
    "s": 81.111,
    "l": 64.706
  },
  "oklch": {
    "l": 0.58879,
    "c": 0.20932,
    "h": 289.4
  },
  "luminance": 0.18339
}

Semantic roles & 50–950 ramp

primary
#7F5CEE
secondary
#E0ECBA
accent
#DD08AA
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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