#7F5CF0#7F5CF0

#7F5CF0 is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.0% C 0.212 H 289.1°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#7F5CF0
RGBrgb(127, 92, 240)
HSLhsl(254, 83%, 65%)
HSVhsv(254, 62%, 94%)
CMYKcmyk(47.1%, 61.7%, 0%, 5.9%)
CIE-LABlab(50.05, 49.21, -69.92)
CIE-LCHlch(50.05, 85.50, 305.14°)
OKLaboklab(59.03% 0.0694 -0.2)
OKLCHoklch(59.03% 0.212 289.1)
XYZxyz(28.3032, 18.4564, 84.4923)
Luminance0.1846 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CF0 #CDF05C
analogous
#5C83F0 #7F5CF0 #C95CF0
triadic
#7F5CF0 #F07F5C #5CF07F
tetradic
#7F5CF0 #F05C83 #CDF05C #5CF0C9
square
#7F5CF0 #F05C83 #CDF05C #5CF0C9
split-complementary
#7F5CF0 #F0C95C #83F05C
monochromatic
#3B12C0 #5324EB #7F5CF0 #AB94F5 #D7CCFA

Accessibility & contrast

On white

4.48
#7F5CF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#7F5CF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5CF0
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CF0#FFFFFF#000000##000000
##7F5CF01.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF5
Deuteranopia (green-blind)
#0073ED
Tritanopia (blue-blind)
#5A7F9E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7f5cf0;
/* rgb */ color: rgb(127, 92, 240);
/* oklch */ color: oklch(59.0% 0.212 289.1);
Tailwind
colors: {
  custom: {
    50: '#ac8cf6',
    500: '#7f5cf0',
    950: '#000000',
  },
}
SCSS
$custom: #7f5cf0;
$custom-light: #ac8cf6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5cf0",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 240
  },
  "hsl": {
    "h": 254.189,
    "s": 83.146,
    "l": 65.098
  },
  "oklch": {
    "l": 0.59027,
    "c": 0.21175,
    "h": 289.1
  },
  "luminance": 0.18458
}

Semantic roles & 50–950 ramp

primary
#7F5CF0
secondary
#E1EDBB
accent
#E006AC
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5CF0

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

Preview Lab → · Contrast checker → · Palette generator →

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