#4F117C#4F117C

#4F117C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.163 H 305.0°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#4F117C
RGBrgb(79, 17, 124)
HSLhsl(275, 76%, 28%)
HSVhsv(275, 86%, 49%)
CMYKcmyk(36.3%, 86.3%, 0%, 51.4%)
CIE-LABlab(22.01, 46.36, -46.95)
CIE-LCHlch(22.01, 65.98, 314.64°)
OKLaboklab(34.9% 0.0937 -0.1339)
OKLCHoklch(34.9% 0.163 305)
XYZxyz(7.0622, 3.5184, 19.3720)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F117C #3E7C11
analogous
#19117C #4F117C #7C1174
triadic
#4F117C #7C4F11 #117C4F
tetradic
#4F117C #7C1911 #3E7C11 #11747C
square
#4F117C #7C1911 #3E7C11 #11747C
split-complementary
#4F117C #747C11 #117C19
monochromatic
#11041B #2D0A46 #4F117C #7118B2 #9326E1

Accessibility & contrast

On white

12.33
#4F117C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4F117C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F117C
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F117C#FFFFFF#000000##FFFFFF
##4F117C1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#462F48
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f117c;
/* rgb */ color: rgb(79, 17, 124);
/* oklch */ color: oklch(34.9% 0.163 305.0);
Tailwind
colors: {
  custom: {
    50: '#8659a3',
    500: '#4f117c',
    950: '#000000',
  },
}
SCSS
$custom: #4f117c;
$custom-light: #8659a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f117c",
  "rgb": {
    "r": 79,
    "g": 17,
    "b": 124
  },
  "hsl": {
    "h": 274.766,
    "s": 75.887,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34903,
    "c": 0.16344,
    "h": 305
  },
  "luminance": 0.03518
}

Semantic roles & 50–950 ramp

primary
#4F117C
secondary
#6BB237
accent
#F23585
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F117C

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

Preview Lab → · Contrast checker → · Palette generator →

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