#7F5DEC#7F5DEC

#7F5DEC is a mid, highly saturated violet. Relative luminance 0.184; OKLCH L 58.9% C 0.206 H 289.5°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#7F5DEC
RGBrgb(127, 93, 236)
HSLhsl(254, 79%, 65%)
HSVhsv(254, 61%, 93%)
CMYKcmyk(46.2%, 60.6%, 0%, 7.5%)
CIE-LABlab(49.97, 47.54, -67.79)
CIE-LCHlch(49.97, 82.80, 305.04°)
OKLaboklab(58.89% 0.0686 -0.1938)
OKLCHoklch(58.89% 0.206 289.5)
XYZxyz(27.8028, 18.3958, 81.4264)
Luminance0.1840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5DEC #CAEC5D
analogous
#5D82EC #7F5DEC #C75DEC
triadic
#7F5DEC #EC7F5D #5DEC7F
tetradic
#7F5DEC #EC5D82 #CAEC5D #5DECC7
square
#7F5DEC #EC5D82 #CAEC5D #5DECC7
split-complementary
#7F5DEC #ECC75D #82EC5D
monochromatic
#3C16B9 #5426E6 #7F5DEC #AA94F2 #D6CBF9

Accessibility & contrast

On white

4.49
#7F5DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#7F5DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5DEC
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5DEC#FFFFFF#000000##000000
##7F5DEC1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f5dec;
/* rgb */ color: rgb(127, 93, 236);
/* oklch */ color: oklch(58.9% 0.206 289.5);
Tailwind
colors: {
  custom: {
    50: '#ac8cf3',
    500: '#7f5dec',
    950: '#000000',
  },
}
SCSS
$custom: #7f5dec;
$custom-light: #ac8cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5dec",
  "rgb": {
    "r": 127,
    "g": 93,
    "b": 236
  },
  "hsl": {
    "h": 254.266,
    "s": 79.006,
    "l": 64.51
  },
  "oklch": {
    "l": 0.58885,
    "c": 0.20559,
    "h": 289.5
  },
  "luminance": 0.18397
}

Semantic roles & 50–950 ramp

primary
#7F5DEC
secondary
#DFEBBA
accent
#DB0AAA
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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