#7F4BAF#7F4BAF

#7F4BAF is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.9% C 0.157 H 305.6°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#7F4BAF
RGBrgb(127, 75, 175)
HSLhsl(271, 40%, 49%)
HSVhsv(271, 57%, 69%)
CMYKcmyk(27.4%, 57.1%, 0%, 31.4%)
CIE-LABlab(42.22, 41.45, -45.20)
CIE-LCHlch(42.22, 61.33, 312.52°)
OKLaboklab(51.94% 0.0913 -0.1274)
OKLCHoklch(51.94% 0.157 305.6)
XYZxyz(19.0047, 12.6395, 41.9876)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BAF #7BAF4B
analogous
#4D4BAF #7F4BAF #AF4BAD
triadic
#7F4BAF #AF7F4B #4BAF7F
tetradic
#7F4BAF #AF4D4B #7BAF4B #4BADAF
square
#7F4BAF #AF4D4B #7BAF4B #4BADAF
split-complementary
#7F4BAF #ADAF4B #4BAF4D
monochromatic
#412659 #603984 #7F4BAF #9D74C3 #BB9FD6

Accessibility & contrast

On white

5.95
#7F4BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7F4BAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4BAF
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BAF#FFFFFF#000000##FFFFFF
##7F4BAF1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2562B2
Deuteranopia (green-blind)
#3964AD
Tritanopia (blue-blind)
#775E76
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7f4baf;
/* rgb */ color: rgb(127, 75, 175);
/* oklch */ color: oklch(51.9% 0.157 305.6);
Tailwind
colors: {
  custom: {
    50: '#a77fc7',
    500: '#7f4baf',
    950: '#000000',
  },
}
SCSS
$custom: #7f4baf;
$custom-light: #a77fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4baf",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 175
  },
  "hsl": {
    "h": 271.2,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.5194,
    "c": 0.15676,
    "h": 305.6
  },
  "luminance": 0.12639
}

Semantic roles & 50–950 ramp

primary
#7F4BAF
secondary
#AAC293
accent
#D05892
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7F4BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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