#7F5FEB#7F5FEB

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

Color values

HEX#7F5FEB
RGBrgb(127, 95, 235)
HSLhsl(254, 78%, 65%)
HSVhsv(254, 60%, 92%)
CMYKcmyk(46%, 59.6%, 0%, 7.8%)
CIE-LABlab(50.33, 46.15, -66.66)
CIE-LCHlch(50.33, 81.07, 304.70°)
OKLaboklab(59.12% 0.0666 -0.1904)
OKLCHoklch(59.12% 0.202 289.3)
XYZxyz(27.8357, 18.6935, 80.7227)
Luminance0.1870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5FEB #CBEB5F
analogous
#5F85EB #7F5FEB #C55FEB
triadic
#7F5FEB #EB7F5F #5FEB7F
tetradic
#7F5FEB #EB5F85 #CBEB5F #5FEBC5
square
#7F5FEB #EB5F85 #CBEB5F #5FEBC5
split-complementary
#7F5FEB #EBC55F #85EB5F
monochromatic
#3C17B9 #5329E4 #7F5FEB #AB95F2 #D6CCF9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F5FEB#FFFFFF#000000##000000
##7F5FEB1.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)
#007BF0
Deuteranopia (green-blind)
#0074E8
Tritanopia (blue-blind)
#5D7F9C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7f5feb;
/* rgb */ color: rgb(127, 95, 235);
/* oklch */ color: oklch(59.1% 0.202 289.3);
Tailwind
colors: {
  custom: {
    50: '#ab8ef2',
    500: '#7f5feb',
    950: '#000000',
  },
}
SCSS
$custom: #7f5feb;
$custom-light: #ab8ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5feb",
  "rgb": {
    "r": 127,
    "g": 95,
    "b": 235
  },
  "hsl": {
    "h": 253.714,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.59122,
    "c": 0.20175,
    "h": 289.3
  },
  "luminance": 0.18695
}

Semantic roles & 50–950 ramp

primary
#7F5FEB
secondary
#E0EBBB
accent
#DA0BAB
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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