#7F5CF4#7F5CF4

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

Color values

HEX#7F5CF4
RGBrgb(127, 92, 244)
HSLhsl(254, 87%, 66%)
HSVhsv(254, 62%, 96%)
CMYKcmyk(48%, 62.3%, 0%, 4.3%)
CIE-LABlab(50.33, 50.33, -71.69)
CIE-LCHlch(50.33, 87.59, 305.07°)
OKLaboklab(59.32% 0.0691 -0.2053)
OKLCHoklch(59.32% 0.217 288.6)
XYZxyz(28.9040, 18.6967, 87.6563)
Luminance0.1870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CF4 #D1F45C
analogous
#5C85F4 #7F5CF4 #CB5CF4
triadic
#7F5CF4 #F47F5C #5CF47F
tetradic
#7F5CF4 #F45C85 #D1F45C #5CF4CB
square
#7F5CF4 #F45C85 #D1F45C #5CF4CB
split-complementary
#7F5CF4 #F4CB5C #85F45C
monochromatic
#380EC8 #5223F0 #7F5CF4 #AC95F8 #D9CFFC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F5CF4#FFFFFF#000000##000000
##7F5CF41.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)
#007BF9
Deuteranopia (green-blind)
#0074F1
Tritanopia (blue-blind)
#5880A0
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7f5cf4;
/* rgb */ color: rgb(127, 92, 244);
/* oklch */ color: oklch(59.3% 0.217 288.6);
Tailwind
colors: {
  custom: {
    50: '#ac8cf9',
    500: '#7f5cf4',
    950: '#000000',
  },
}
SCSS
$custom: #7f5cf4;
$custom-light: #ac8cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5cf4",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 244
  },
  "hsl": {
    "h": 253.816,
    "s": 87.356,
    "l": 65.882
  },
  "oklch": {
    "l": 0.59324,
    "c": 0.21658,
    "h": 288.6
  },
  "luminance": 0.18698
}

Semantic roles & 50–950 ramp

primary
#7F5CF4
secondary
#E3EFBD
accent
#E402B0
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5CF4

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

Preview Lab → · Contrast checker → · Palette generator →

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