#7F4FAF#7F4FAF

#7F4FAF is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.6% C 0.150 H 304.9°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#7F4FAF
RGBrgb(127, 79, 175)
HSLhsl(270, 38%, 50%)
HSVhsv(270, 55%, 69%)
CMYKcmyk(27.4%, 54.9%, 0%, 31.4%)
CIE-LABlab(43.06, 39.23, -43.85)
CIE-LCHlch(43.06, 58.84, 311.82°)
OKLaboklab(52.56% 0.086 -0.1235)
OKLCHoklch(52.56% 0.15 304.9)
XYZxyz(19.2846, 13.1992, 42.0809)
Luminance0.1320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4FAF #7FAF4F
analogous
#4F4FAF #7F4FAF #AF4FAF
triadic
#7F4FAF #AF7F4F #4FAF7F
tetradic
#7F4FAF #AF4F4F #7FAF4F #4FAFAF
square
#7F4FAF #AF4F4F #7FAF4F #4FAFAF
split-complementary
#7F4FAF #AFAF4F #4FAF4F
monochromatic
#42295B #603C85 #7F4FAF #9E79C2 #BCA3D5

Accessibility & contrast

On white

5.77
#7F4FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#7F4FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4FAF
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4FAF#FFFFFF#000000##FFFFFF
##7F4FAF1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E64B2
Deuteranopia (green-blind)
#3E66AD
Tritanopia (blue-blind)
#776177
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7f4faf;
/* rgb */ color: rgb(127, 79, 175);
/* oklch */ color: oklch(52.6% 0.150 304.9);
Tailwind
colors: {
  custom: {
    50: '#a782c7',
    500: '#7f4faf',
    950: '#000000',
  },
}
SCSS
$custom: #7f4faf;
$custom-light: #a782c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4faf",
  "rgb": {
    "r": 127,
    "g": 79,
    "b": 175
  },
  "hsl": {
    "h": 270,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52563,
    "c": 0.15047,
    "h": 304.9
  },
  "luminance": 0.13199
}

Semantic roles & 50–950 ramp

primary
#7F4FAF
secondary
#ADC397
accent
#CE5A94
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7F4FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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