#7F4BCB#7F4BCB

#7F4BCB is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.8% C 0.190 H 298.5°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#7F4BCB
RGBrgb(127, 75, 203)
HSLhsl(264, 55%, 55%)
HSVhsv(264, 63%, 80%)
CMYKcmyk(37.4%, 63.1%, 0%, 20.4%)
CIE-LABlab(44.03, 48.48, -58.64)
CIE-LCHlch(44.03, 76.08, 309.58°)
OKLaboklab(53.84% 0.0906 -0.1669)
OKLCHoklch(53.84% 0.19 298.5)
XYZxyz(22.0453, 13.8557, 58.0013)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BCB #97CB4B
analogous
#4B57CB #7F4BCB #BF4BCB
triadic
#7F4BCB #CB7F4B #4BCB7F
tetradic
#7F4BCB #CB4B57 #97CB4B #4BCBBF
square
#7F4BCB #CB4B57 #97CB4B #4BCBBF
split-complementary
#7F4BCB #CBBF4B #57CB4B
monochromatic
#462379 #6131A8 #7F4BCB #A17AD9 #C3AAE6

Accessibility & contrast

On white

5.57
#7F4BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#7F4BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4BCB
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BCB#FFFFFF#000000##FFFFFF
##7F4BCB1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#0867C8
Tritanopia (blue-blind)
#6D6784
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7f4bcb;
/* rgb */ color: rgb(127, 75, 203);
/* oklch */ color: oklch(53.8% 0.190 298.5);
Tailwind
colors: {
  custom: {
    50: '#a980dc',
    500: '#7f4bcb',
    950: '#000000',
  },
}
SCSS
$custom: #7f4bcb;
$custom-light: #a980dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4bcb",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 203
  },
  "hsl": {
    "h": 264.375,
    "s": 55.172,
    "l": 54.51
  },
  "oklch": {
    "l": 0.53838,
    "c": 0.18985,
    "h": 298.5
  },
  "luminance": 0.13856
}

Semantic roles & 50–950 ramp

primary
#7F4BCB
secondary
#BED49E
accent
#DF49A2
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F4BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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