#7F5EF5#7F5EF5

#7F5EF5 is a mid, highly saturated violet. Relative luminance 0.191; OKLCH L 59.7% C 0.215 H 288.1°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#7F5EF5
RGBrgb(127, 94, 245)
HSLhsl(253, 88%, 66%)
HSVhsv(253, 62%, 96%)
CMYKcmyk(48.2%, 61.6%, 0%, 3.9%)
CIE-LABlab(50.81, 49.51, -71.46)
CIE-LCHlch(50.81, 86.94, 304.71°)
OKLaboklab(59.7% 0.067 -0.2046)
OKLCHoklch(59.7% 0.215 288.1)
XYZxyz(29.2318, 19.1087, 88.5166)
Luminance0.1911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5EF5 #D4F55E
analogous
#5E89F5 #7F5EF5 #CB5EF5
triadic
#7F5EF5 #F57F5E #5EF57F
tetradic
#7F5EF5 #F55E89 #D4F55E #5EF5CB
square
#7F5EF5 #F55E89 #D4F55E #5EF5CB
split-complementary
#7F5EF5 #F5CB5E #89F55E
monochromatic
#360DCC #5124F1 #7F5EF5 #AD98F9 #DBD1FC

Accessibility & contrast

On white

4.36
#7F5EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#7F5EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5EF5
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5EF5#FFFFFF#000000##000000
##7F5EF51.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFA
Deuteranopia (green-blind)
#0075F2
Tritanopia (blue-blind)
#5782A1
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7f5ef5;
/* rgb */ color: rgb(127, 94, 245);
/* oklch */ color: oklch(59.7% 0.215 288.1);
Tailwind
colors: {
  custom: {
    50: '#ac8df9',
    500: '#7f5ef5',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ef5;
$custom-light: #ac8df9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ef5",
  "rgb": {
    "r": 127,
    "g": 94,
    "b": 245
  },
  "hsl": {
    "h": 253.113,
    "s": 88.304,
    "l": 66.471
  },
  "oklch": {
    "l": 0.59698,
    "c": 0.21528,
    "h": 288.1
  },
  "luminance": 0.1911
}

Semantic roles & 50–950 ramp

primary
#7F5EF5
secondary
#E5F0BF
accent
#E501B3
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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