#4F317A#4F317A

#4F317A is a dark, vivid violet. Relative luminance 0.053; OKLCH L 38.8% C 0.120 H 299.7°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#4F317A
RGBrgb(79, 49, 122)
HSLhsl(265, 43%, 34%)
HSVhsv(265, 60%, 48%)
CMYKcmyk(35.2%, 59.8%, 0%, 52.2%)
CIE-LABlab(27.47, 30.22, -36.83)
CIE-LCHlch(27.47, 47.64, 309.37°)
OKLaboklab(38.76% 0.0596 -0.1043)
OKLCHoklch(38.76% 0.12 299.7)
XYZxyz(7.8348, 5.2640, 19.0119)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F317A #5C7A31
analogous
#31377A #4F317A #73317A
triadic
#4F317A #7A4F31 #317A4F
tetradic
#4F317A #7A3137 #5C7A31 #317A73
square
#4F317A #7A3137 #5C7A31 #317A73
split-complementary
#4F317A #7A7331 #377A31
monochromatic
#160E23 #331F4E #4F317A #6B43A6 #8A64C1

Accessibility & contrast

On white

10.23
#4F317A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4F317A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F317A
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F317A#FFFFFF#000000##FFFFFF
##4F317A1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E417C
Deuteranopia (green-blind)
#1B4078
Tritanopia (blue-blind)
#464050
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f317a;
/* rgb */ color: rgb(79, 49, 122);
/* oklch */ color: oklch(38.8% 0.120 299.7);
Tailwind
colors: {
  custom: {
    50: '#836aa1',
    500: '#4f317a',
    950: '#000000',
  },
}
SCSS
$custom: #4f317a;
$custom-light: #836aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f317a",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 264.658,
    "s": 42.69,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38756,
    "c": 0.12018,
    "h": 299.7
  },
  "luminance": 0.05264
}

Semantic roles & 50–950 ramp

primary
#4F317A
secondary
#8AA85E
accent
#D2559F
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #4F317A

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

Preview Lab → · Contrast checker → · Palette generator →

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