#7F5FC2#7F5FC2

#7F5FC2 is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.4% C 0.149 H 296.2°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#7F5FC2
RGBrgb(127, 95, 194)
HSLhsl(259, 45%, 57%)
HSVhsv(259, 51%, 76%)
CMYKcmyk(34.5%, 51%, 0%, 23.9%)
CIE-LABlab(47.74, 34.92, -47.47)
CIE-LCHlch(47.74, 58.93, 306.34°)
OKLaboklab(56.39% 0.0659 -0.1341)
OKLCHoklch(56.39% 0.149 296.2)
XYZxyz(22.5798, 16.5911, 53.0413)
Luminance0.1659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5FC2 #A2C25F
analogous
#5F71C2 #7F5FC2 #B15FC2
triadic
#7F5FC2 #C27F5F #5FC27F
tetradic
#7F5FC2 #C25F71 #A2C25F #5FC2B1
square
#7F5FC2 #C25F71 #A2C25F #5FC2B1
split-complementary
#7F5FC2 #C2B15F #71C25F
monochromatic
#462E79 #603FA5 #7F5FC2 #A28BD3 #C6B8E4

Accessibility & contrast

On white

4.86
#7F5FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#7F5FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5FC2
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5FC2#FFFFFF#000000##FFFFFF
##7F5FC21.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A72C5
Deuteranopia (green-blind)
#4170C0
Tritanopia (blue-blind)
#707287
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f5fc2;
/* rgb */ color: rgb(127, 95, 194);
/* oklch */ color: oklch(56.4% 0.149 296.2);
Tailwind
colors: {
  custom: {
    50: '#a78dd5',
    500: '#7f5fc2',
    950: '#000000',
  },
}
SCSS
$custom: #7f5fc2;
$custom-light: #a78dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5fc2",
  "rgb": {
    "r": 127,
    "g": 95,
    "b": 194
  },
  "hsl": {
    "h": 259.394,
    "s": 44.796,
    "l": 56.667
  },
  "oklch": {
    "l": 0.56386,
    "c": 0.14943,
    "h": 296.2
  },
  "luminance": 0.16591
}

Semantic roles & 50–950 ramp

primary
#7F5FC2
secondary
#C6D3AA
accent
#D453AB
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7F5FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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