#7F5EC2#7F5EC2

#7F5EC2 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.2% C 0.151 H 296.5°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7F5EC2
RGBrgb(127, 94, 194)
HSLhsl(260, 45%, 56%)
HSVhsv(260, 52%, 76%)
CMYKcmyk(34.5%, 51.5%, 0%, 23.9%)
CIE-LABlab(47.51, 35.51, -47.84)
CIE-LCHlch(47.51, 59.57, 306.58°)
OKLaboklab(56.22% 0.0673 -0.1352)
OKLCHoklch(56.22% 0.151 296.5)
XYZxyz(22.4903, 16.4121, 53.0114)
Luminance0.1641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5EC2 #A1C25E
analogous
#5E6FC2 #7F5EC2 #B15EC2
triadic
#7F5EC2 #C27F5E #5EC27F
tetradic
#7F5EC2 #C25E6F #A1C25E #5EC2B1
square
#7F5EC2 #C25E6F #A1C25E #5EC2B1
split-complementary
#7F5EC2 #C2B15E #6FC25E
monochromatic
#462E78 #603EA4 #7F5EC2 #A28AD3 #C6B7E4

Accessibility & contrast

On white

4.90
#7F5EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#7F5EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5EC2
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5EC2#FFFFFF#000000##FFFFFF
##7F5EC21.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3871C5
Deuteranopia (green-blind)
#406FC0
Tritanopia (blue-blind)
#707287
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f5ec2;
/* rgb */ color: rgb(127, 94, 194);
/* oklch */ color: oklch(56.2% 0.151 296.5);
Tailwind
colors: {
  custom: {
    50: '#a78cd5',
    500: '#7f5ec2',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ec2;
$custom-light: #a78cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ec2",
  "rgb": {
    "r": 127,
    "g": 94,
    "b": 194
  },
  "hsl": {
    "h": 259.8,
    "s": 45.045,
    "l": 56.471
  },
  "oklch": {
    "l": 0.56215,
    "c": 0.15098,
    "h": 296.5
  },
  "luminance": 0.16412
}

Semantic roles & 50–950 ramp

primary
#7F5EC2
secondary
#C5D2A9
accent
#D553AA
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7F5EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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