#7F4FBB#7F4FBB

#7F4FBB is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.3% C 0.165 H 301.5°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#7F4FBB
RGBrgb(127, 79, 187)
HSLhsl(267, 44%, 52%)
HSVhsv(267, 58%, 73%)
CMYKcmyk(32.1%, 57.8%, 0%, 26.7%)
CIE-LABlab(43.79, 42.23, -49.73)
CIE-LCHlch(43.79, 65.24, 310.33°)
OKLaboklab(53.33% 0.0863 -0.1407)
OKLCHoklch(53.33% 0.165 301.5)
XYZxyz(20.5159, 13.6918, 48.5660)
Luminance0.1369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4FBB #8BBB4F
analogous
#4F55BB #7F4FBB #B54FBB
triadic
#7F4FBB #BB7F4F #4FBB7F
tetradic
#7F4FBB #BB4F55 #8BBB4F #4FBBB5
square
#7F4FBB #BB4F55 #8BBB4F #4FBBB5
split-complementary
#7F4FBB #BBB54F #55BB4F
monochromatic
#442868 #613994 #7F4FBB #9F7BCC #BFA7DD

Accessibility & contrast

On white

5.62
#7F4FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#7F4FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4FBB
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4FBB#FFFFFF#000000##FFFFFF
##7F4FBB1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E67BF
Deuteranopia (green-blind)
#3267B9
Tritanopia (blue-blind)
#73657D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7f4fbb;
/* rgb */ color: rgb(127, 79, 187);
/* oklch */ color: oklch(53.3% 0.165 301.5);
Tailwind
colors: {
  custom: {
    50: '#a882d0',
    500: '#7f4fbb',
    950: '#000000',
  },
}
SCSS
$custom: #7f4fbb;
$custom-light: #a882d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4fbb",
  "rgb": {
    "r": 127,
    "g": 79,
    "b": 187
  },
  "hsl": {
    "h": 266.667,
    "s": 44.262,
    "l": 52.157
  },
  "oklch": {
    "l": 0.5333,
    "c": 0.16507,
    "h": 301.5
  },
  "luminance": 0.13692
}

Semantic roles & 50–950 ramp

primary
#7F4FBB
secondary
#B6CA9B
accent
#D4549B
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7F4FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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