#7F4FCB#7F4FCB

#7F4FCB is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.4% C 0.184 H 297.8°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#7F4FCB
RGBrgb(127, 79, 203)
HSLhsl(263, 54%, 55%)
HSVhsv(263, 61%, 80%)
CMYKcmyk(37.4%, 61.1%, 0%, 20.4%)
CIE-LABlab(44.82, 46.33, -57.35)
CIE-LCHlch(44.82, 73.72, 308.94°)
OKLaboklab(54.42% 0.086 -0.1631)
OKLCHoklch(54.42% 0.184 297.8)
XYZxyz(22.3251, 14.4155, 58.0946)
Luminance0.1442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4FCB #9BCB4F
analogous
#4F5DCB #7F4FCB #BD4FCB
triadic
#7F4FCB #CB7F4F #4FCB7F
tetradic
#7F4FCB #CB4F5D #9BCB4F #4FCBBD
square
#7F4FCB #CB4F5D #9BCB4F #4FCBBD
split-complementary
#7F4FCB #CBBD4F #5DCB4F
monochromatic
#46247B #6132AA #7F4FCB #A17ED9 #C4ADE7

Accessibility & contrast

On white

5.41
#7F4FCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#7F4FCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4FCB
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4FCB#FFFFFF#000000##FFFFFF
##7F4FCB1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#1869C8
Tritanopia (blue-blind)
#6D6A86
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7f4fcb;
/* rgb */ color: rgb(127, 79, 203);
/* oklch */ color: oklch(54.4% 0.184 297.8);
Tailwind
colors: {
  custom: {
    50: '#a983dc',
    500: '#7f4fcb',
    950: '#000000',
  },
}
SCSS
$custom: #7f4fcb;
$custom-light: #a983dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4fcb",
  "rgb": {
    "r": 127,
    "g": 79,
    "b": 203
  },
  "hsl": {
    "h": 263.226,
    "s": 54.386,
    "l": 55.294
  },
  "oklch": {
    "l": 0.54417,
    "c": 0.18435,
    "h": 297.8
  },
  "luminance": 0.14416
}

Semantic roles & 50–950 ramp

primary
#7F4FCB
secondary
#C1D5A1
accent
#DE4AA5
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7F4FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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