#7F5EF4#7F5EF4

#7F5EF4 is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 59.6% C 0.214 H 288.3°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#7F5EF4
RGBrgb(127, 94, 244)
HSLhsl(253, 87%, 66%)
HSVhsv(253, 61%, 96%)
CMYKcmyk(48%, 61.5%, 0%, 4.3%)
CIE-LABlab(50.74, 49.23, -71.02)
CIE-LCHlch(50.74, 86.41, 304.73°)
OKLaboklab(59.62% 0.0671 -0.2033)
OKLCHoklch(59.62% 0.214 288.3)
XYZxyz(29.0795, 19.0478, 87.7148)
Luminance0.1905 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5EF4 #D3F45E
analogous
#5E88F4 #7F5EF4 #CA5EF4
triadic
#7F5EF4 #F47F5E #5EF47F
tetradic
#7F5EF4 #F45E88 #D3F45E #5EF4CA
square
#7F5EF4 #F45E88 #D3F45E #5EF4CA
split-complementary
#7F5EF4 #F4CA5E #88F45E
monochromatic
#370ECA #5125F0 #7F5EF4 #AD97F8 #DAD1FC

Accessibility & contrast

On white

4.37
#7F5EF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#7F5EF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5EF4
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5EF4#FFFFFF#000000##000000
##7F5EF41.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF9
Deuteranopia (green-blind)
#0075F1
Tritanopia (blue-blind)
#5781A0
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7f5ef4;
/* rgb */ color: rgb(127, 94, 244);
/* oklch */ color: oklch(59.6% 0.214 288.3);
Tailwind
colors: {
  custom: {
    50: '#ac8df9',
    500: '#7f5ef4',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ef4;
$custom-light: #ac8df9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ef4",
  "rgb": {
    "r": 127,
    "g": 94,
    "b": 244
  },
  "hsl": {
    "h": 253.2,
    "s": 87.209,
    "l": 66.275
  },
  "oklch": {
    "l": 0.59624,
    "c": 0.21407,
    "h": 288.3
  },
  "luminance": 0.19049
}

Semantic roles & 50–950 ramp

primary
#7F5EF4
secondary
#E5EFBE
accent
#E402B2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5EF4

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

Preview Lab → · Contrast checker → · Palette generator →

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