#4F117B#4F117B

#4F117B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.162 H 305.4°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#4F117B
RGBrgb(79, 17, 123)
HSLhsl(275, 76%, 27%)
HSVhsv(275, 86%, 48%)
CMYKcmyk(35.8%, 86.2%, 0%, 51.8%)
CIE-LABlab(21.92, 46.13, -46.46)
CIE-LCHlch(21.92, 65.47, 314.79°)
OKLaboklab(34.81% 0.0941 -0.1325)
OKLCHoklch(34.81% 0.162 305.4)
XYZxyz(6.9992, 3.4933, 19.0406)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F117B #3D7B11
analogous
#1A117B #4F117B #7B1172
triadic
#4F117B #7B4F11 #117B4F
tetradic
#4F117B #7B1A11 #3D7B11 #11727B
square
#4F117B #7B1A11 #3D7B11 #11727B
split-complementary
#4F117B #727B11 #117B1A
monochromatic
#11041B #2C0A45 #4F117B #7218B1 #9325E1

Accessibility & contrast

On white

12.36
#4F117B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F117B
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F117B#FFFFFF#000000##FFFFFF
##4F117B1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#472F48
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4f117b;
/* rgb */ color: rgb(79, 17, 123);
/* oklch */ color: oklch(34.8% 0.162 305.4);
Tailwind
colors: {
  custom: {
    50: '#8659a2',
    500: '#4f117b',
    950: '#000000',
  },
}
SCSS
$custom: #4f117b;
$custom-light: #8659a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f117b",
  "rgb": {
    "r": 79,
    "g": 17,
    "b": 123
  },
  "hsl": {
    "h": 275.094,
    "s": 75.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34812,
    "c": 0.16246,
    "h": 305.4
  },
  "luminance": 0.03493
}

Semantic roles & 50–950 ramp

primary
#4F117B
secondary
#69B136
accent
#F23584
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F117B

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

Preview Lab → · Contrast checker → · Palette generator →

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