#4F117F#4F117F

#4F117F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.166 H 303.9°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#4F117F
RGBrgb(79, 17, 127)
HSLhsl(274, 76%, 28%)
HSVhsv(274, 87%, 50%)
CMYKcmyk(37.8%, 86.6%, 0%, 50.2%)
CIE-LABlab(22.29, 47.07, -48.41)
CIE-LCHlch(22.29, 67.52, 314.20°)
OKLaboklab(35.18% 0.0927 -0.1382)
OKLCHoklch(35.18% 0.166 303.9)
XYZxyz(7.2548, 3.5955, 20.3864)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F117F #417F11
analogous
#18117F #4F117F #7F1178
triadic
#4F117F #7F4F11 #117F4F
tetradic
#4F117F #7F1811 #417F11 #11787F
square
#4F117F #7F1811 #417F11 #11787F
split-complementary
#4F117F #787F11 #117F18
monochromatic
#11041B #2D0A49 #4F117F #7118B5 #9128E2

Accessibility & contrast

On white

12.22
#4F117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4F117F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F117F
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F117F#FFFFFF#000000##FFFFFF
##4F117F1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#45314A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f117f;
/* rgb */ color: rgb(79, 17, 127);
/* oklch */ color: oklch(35.2% 0.166 303.9);
Tailwind
colors: {
  custom: {
    50: '#8659a5',
    500: '#4f117f',
    950: '#000000',
  },
}
SCSS
$custom: #4f117f;
$custom-light: #8659a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f117f",
  "rgb": {
    "r": 79,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 273.818,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35178,
    "c": 0.16639,
    "h": 303.9
  },
  "luminance": 0.03595
}

Semantic roles & 50–950 ramp

primary
#4F117F
secondary
#6EB537
accent
#F33588
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F117F

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

Preview Lab → · Contrast checker → · Palette generator →

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