#4F117E#4F117E

#4F117E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.165 H 304.2°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#4F117E
RGBrgb(79, 17, 126)
HSLhsl(274, 76%, 28%)
HSVhsv(274, 87%, 49%)
CMYKcmyk(37.3%, 86.5%, 0%, 50.6%)
CIE-LABlab(22.19, 46.83, -47.92)
CIE-LCHlch(22.19, 67.01, 314.34°)
OKLaboklab(35.09% 0.093 -0.1367)
OKLCHoklch(35.09% 0.165 304.2)
XYZxyz(7.1899, 3.5695, 20.0448)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F117E #407E11
analogous
#18117E #4F117E #7E1177
triadic
#4F117E #7E4F11 #117E4F
tetradic
#4F117E #7E1811 #407E11 #11777E
square
#4F117E #7E1811 #407E11 #11777E
split-complementary
#4F117E #777E11 #117E18
monochromatic
#11041B #2D0A48 #4F117E #7118B4 #9227E2

Accessibility & contrast

On white

12.25
#4F117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4F117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F117E
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F117E#FFFFFF#000000##FFFFFF
##4F117E1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#46304A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f117e;
/* rgb */ color: rgb(79, 17, 126);
/* oklch */ color: oklch(35.1% 0.165 304.2);
Tailwind
colors: {
  custom: {
    50: '#8659a4',
    500: '#4f117e',
    950: '#000000',
  },
}
SCSS
$custom: #4f117e;
$custom-light: #8659a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f117e",
  "rgb": {
    "r": 79,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 274.128,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35086,
    "c": 0.16541,
    "h": 304.2
  },
  "luminance": 0.0357
}

Semantic roles & 50–950 ramp

primary
#4F117E
secondary
#6DB437
accent
#F33587
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F117E

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

Preview Lab → · Contrast checker → · Palette generator →

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