#7F4BCA#7F4BCA

#7F4BCA is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.8% C 0.189 H 298.7°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#7F4BCA
RGBrgb(127, 75, 202)
HSLhsl(265, 55%, 54%)
HSVhsv(265, 63%, 79%)
CMYKcmyk(37.1%, 62.9%, 0%, 20.8%)
CIE-LABlab(43.96, 48.22, -58.17)
CIE-LCHlch(43.96, 75.56, 309.66°)
OKLaboklab(53.77% 0.0906 -0.1655)
OKLCHoklch(53.77% 0.189 298.7)
XYZxyz(21.9265, 13.8082, 57.3757)
Luminance0.1381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BCA #96CA4B
analogous
#4B57CA #7F4BCA #BF4BCA
triadic
#7F4BCA #CA7F4B #4BCA7F
tetradic
#7F4BCA #CA4B57 #96CA4B #4BCABF
square
#7F4BCA #CA4B57 #96CA4B #4BCABF
split-complementary
#7F4BCA #CABF4B #57CA4B
monochromatic
#462377 #6131A7 #7F4BCA #A17AD8 #C2AAE6

Accessibility & contrast

On white

5.58
#7F4BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#7F4BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4BCA
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BCA#FFFFFF#000000##FFFFFF
##7F4BCA1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#0D67C7
Tritanopia (blue-blind)
#6E6784
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7f4bca;
/* rgb */ color: rgb(127, 75, 202);
/* oklch */ color: oklch(53.8% 0.189 298.7);
Tailwind
colors: {
  custom: {
    50: '#a980db',
    500: '#7f4bca',
    950: '#000000',
  },
}
SCSS
$custom: #7f4bca;
$custom-light: #a980db;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4bca",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 202
  },
  "hsl": {
    "h": 264.567,
    "s": 54.506,
    "l": 54.314
  },
  "oklch": {
    "l": 0.53766,
    "c": 0.18868,
    "h": 298.7
  },
  "luminance": 0.13808
}

Semantic roles & 50–950 ramp

primary
#7F4BCA
secondary
#BDD39D
accent
#DE4AA1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F4BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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