#7F5BF2#7F5BF2

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

Color values

HEX#7F5BF2
RGBrgb(127, 91, 242)
HSLhsl(254, 85%, 65%)
HSVhsv(254, 62%, 95%)
CMYKcmyk(47.5%, 62.4%, 0%, 5.1%)
CIE-LABlab(49.98, 50.32, -71.14)
CIE-LCHlch(49.98, 87.13, 305.27°)
OKLaboklab(59.03% 0.0703 -0.2036)
OKLCHoklch(59.03% 0.215 289)
XYZxyz(28.5159, 18.4038, 86.0370)
Luminance0.1840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5BF2 #CEF25B
analogous
#5B82F2 #7F5BF2 #CB5BF2
triadic
#7F5BF2 #F27F5B #5BF27F
tetradic
#7F5BF2 #F25B82 #CEF25B #5BF2CB
square
#7F5BF2 #F25B82 #CEF25B #5BF2CB
split-complementary
#7F5BF2 #F2CB5B #82F25B
monochromatic
#3A0FC3 #5322EE #7F5BF2 #AB94F6 #D8CCFB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F5BF2#FFFFFF#000000##000000
##7F5BF21.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)
#007AF7
Deuteranopia (green-blind)
#0073EF
Tritanopia (blue-blind)
#597F9E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7f5bf2;
/* rgb */ color: rgb(127, 91, 242);
/* oklch */ color: oklch(59.0% 0.215 289.0);
Tailwind
colors: {
  custom: {
    50: '#ac8bf7',
    500: '#7f5bf2',
    950: '#000000',
  },
}
SCSS
$custom: #7f5bf2;
$custom-light: #ac8bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5bf2",
  "rgb": {
    "r": 127,
    "g": 91,
    "b": 242
  },
  "hsl": {
    "h": 254.305,
    "s": 85.311,
    "l": 65.294
  },
  "oklch": {
    "l": 0.59026,
    "c": 0.21542,
    "h": 289
  },
  "luminance": 0.18405
}

Semantic roles & 50–950 ramp

primary
#7F5BF2
secondary
#E2EEBB
accent
#E204AD
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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