#7F4BC8#7F4BC8

#7F4BC8 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.6% C 0.186 H 299.2°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#7F4BC8
RGBrgb(127, 75, 200)
HSLhsl(265, 53%, 54%)
HSVhsv(265, 63%, 78%)
CMYKcmyk(36.5%, 62.5%, 0%, 21.6%)
CIE-LABlab(43.82, 47.71, -57.23)
CIE-LCHlch(43.82, 74.51, 309.81°)
OKLaboklab(53.62% 0.0908 -0.1627)
OKLCHoklch(53.62% 0.186 299.2)
XYZxyz(21.6912, 13.7141, 56.1367)
Luminance0.1371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BC8 #94C84B
analogous
#4B56C8 #7F4BC8 #BE4BC8
triadic
#7F4BC8 #C87F4B #4BC87F
tetradic
#7F4BC8 #C84B56 #94C84B #4BC8BE
square
#7F4BC8 #C84B56 #94C84B #4BC8BE
split-complementary
#7F4BC8 #C8BE4B #56C84B
monochromatic
#452475 #6132A4 #7F4BC8 #A07AD6 #C2A9E5

Accessibility & contrast

On white

5.61
#7F4BC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F4BC8
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BC8#FFFFFF#000000##FFFFFF
##7F4BC81.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CC
Deuteranopia (green-blind)
#1466C5
Tritanopia (blue-blind)
#6F6683
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7f4bc8;
/* rgb */ color: rgb(127, 75, 200);
/* oklch */ color: oklch(53.6% 0.186 299.2);
Tailwind
colors: {
  custom: {
    50: '#a980d9',
    500: '#7f4bc8',
    950: '#000000',
  },
}
SCSS
$custom: #7f4bc8;
$custom-light: #a980d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4bc8",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 200
  },
  "hsl": {
    "h": 264.96,
    "s": 53.191,
    "l": 53.922
  },
  "oklch": {
    "l": 0.53624,
    "c": 0.18634,
    "h": 299.2
  },
  "luminance": 0.13714
}

Semantic roles & 50–950 ramp

primary
#7F4BC8
secondary
#BCD29D
accent
#DD4BA0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F4BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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