#4F317D#4F317D

#4F317D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.0% C 0.124 H 298.7°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#4F317D
RGBrgb(79, 49, 125)
HSLhsl(264, 44%, 34%)
HSVhsv(264, 61%, 49%)
CMYKcmyk(36.8%, 60.8%, 0%, 51%)
CIE-LABlab(27.68, 31.06, -38.39)
CIE-LCHlch(27.68, 49.38, 308.97°)
OKLaboklab(38.97% 0.0596 -0.1089)
OKLCHoklch(38.97% 0.124 298.7)
XYZxyz(8.0235, 5.3395, 20.0060)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F317D #5F7D31
analogous
#31397D #4F317D #75317D
triadic
#4F317D #7D4F31 #317D4F
tetradic
#4F317D #7D3139 #5F7D31 #317D75
square
#4F317D #7D3139 #5F7D31 #317D75
split-complementary
#4F317D #7D7531 #397D31
monochromatic
#170F25 #332051 #4F317D #6B42A9 #8A66C3

Accessibility & contrast

On white

10.15
#4F317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4F317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F317D
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F317D#FFFFFF#000000##FFFFFF
##4F317D1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07417F
Deuteranopia (green-blind)
#17417B
Tritanopia (blue-blind)
#454152
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f317d;
/* rgb */ color: rgb(79, 49, 125);
/* oklch */ color: oklch(39.0% 0.124 298.7);
Tailwind
colors: {
  custom: {
    50: '#846aa3',
    500: '#4f317d',
    950: '#000000',
  },
}
SCSS
$custom: #4f317d;
$custom-light: #846aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f317d",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 263.684,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38973,
    "c": 0.12416,
    "h": 298.7
  },
  "luminance": 0.0534
}

Semantic roles & 50–950 ramp

primary
#4F317D
secondary
#8DAA60
accent
#D354A1
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4F317D

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

Preview Lab → · Contrast checker → · Palette generator →

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