#7F5CF2#7F5CF2

#7F5CF2 is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.2% C 0.214 H 288.9°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#7F5CF2
RGBrgb(127, 92, 242)
HSLhsl(254, 85%, 65%)
HSVhsv(254, 62%, 95%)
CMYKcmyk(47.5%, 62%, 0%, 5.1%)
CIE-LABlab(50.19, 49.77, -70.81)
CIE-LCHlch(50.19, 86.55, 305.10°)
OKLaboklab(59.18% 0.0693 -0.2027)
OKLCHoklch(59.18% 0.214 288.9)
XYZxyz(28.6019, 18.5759, 86.0657)
Luminance0.1858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5CF2 #CFF25C
analogous
#5C84F2 #7F5CF2 #CA5CF2
triadic
#7F5CF2 #F27F5C #5CF27F
tetradic
#7F5CF2 #F25C84 #CFF25C #5CF2CA
square
#7F5CF2 #F25C84 #CFF25C #5CF2CA
split-complementary
#7F5CF2 #F2CA5C #84F25C
monochromatic
#3A10C4 #5223ED #7F5CF2 #AC95F7 #D8CDFB

Accessibility & contrast

On white

4.45
#7F5CF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#7F5CF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5CF2
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5CF2#FFFFFF#000000##000000
##7F5CF21.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF7
Deuteranopia (green-blind)
#0074EF
Tritanopia (blue-blind)
#597F9F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7f5cf2;
/* rgb */ color: rgb(127, 92, 242);
/* oklch */ color: oklch(59.2% 0.214 288.9);
Tailwind
colors: {
  custom: {
    50: '#ac8cf7',
    500: '#7f5cf2',
    950: '#000000',
  },
}
SCSS
$custom: #7f5cf2;
$custom-light: #ac8cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5cf2",
  "rgb": {
    "r": 127,
    "g": 92,
    "b": 242
  },
  "hsl": {
    "h": 254,
    "s": 85.227,
    "l": 65.49
  },
  "oklch": {
    "l": 0.59175,
    "c": 0.21416,
    "h": 288.9
  },
  "luminance": 0.18577
}

Semantic roles & 50–950 ramp

primary
#7F5CF2
secondary
#E2EEBC
accent
#E204AE
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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