#4F319F#4F319F

#4F319F is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.7% C 0.168 H 289.6°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#4F319F
RGBrgb(79, 49, 159)
HSLhsl(256, 53%, 41%)
HSVhsv(256, 69%, 62%)
CMYKcmyk(50.3%, 69.2%, 0%, 37.6%)
CIE-LABlab(30.31, 40.91, -55.13)
CIE-LCHlch(30.31, 68.65, 306.58°)
OKLaboklab(41.7% 0.0563 -0.1581)
OKLCHoklch(41.7% 0.168 289.6)
XYZxyz(10.5790, 6.3616, 33.4647)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F319F #819F31
analogous
#314A9F #4F319F #86319F
triadic
#4F319F #9F4F31 #319F4F
tetradic
#4F319F #9F314A #819F31 #319F86
square
#4F319F #9F314A #819F31 #319F86
split-complementary
#4F319F #9F8631 #4A9F31
monochromatic
#211441 #382370 #4F319F #6A47C6 #9076D5

Accessibility & contrast

On white

9.24
#4F319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4F319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F319F
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F319F#FFFFFF#000000##FFFFFF
##4F319F1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#344D64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f319f;
/* rgb */ color: rgb(79, 49, 159);
/* oklch */ color: oklch(41.7% 0.168 289.6);
Tailwind
colors: {
  custom: {
    50: '#886bbc',
    500: '#4f319f',
    950: '#000000',
  },
}
SCSS
$custom: #4f319f;
$custom-light: #886bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f319f",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 256.364,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41702,
    "c": 0.16786,
    "h": 289.6
  },
  "luminance": 0.06362
}

Semantic roles & 50–950 ramp

primary
#4F319F
secondary
#A8BD6F
accent
#DC4CB5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4F319F

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

Preview Lab → · Contrast checker → · Palette generator →

#4F319F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva