#4F107F#4F107F

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

Color values

HEX#4F107F
RGBrgb(79, 16, 127)
HSLhsl(274, 78%, 28%)
HSVhsv(274, 87%, 50%)
CMYKcmyk(37.8%, 87.4%, 0%, 50.2%)
CIE-LABlab(22.18, 47.38, -48.58)
CIE-LCHlch(22.18, 67.86, 314.29°)
OKLaboklab(35.1% 0.0934 -0.1387)
OKLCHoklch(35.1% 0.167 304)
XYZxyz(7.2396, 3.5652, 20.3813)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F107F #407F10
analogous
#17107F #4F107F #7F1077
triadic
#4F107F #7F4F10 #107F4F
tetradic
#4F107F #7F1710 #407F10 #10777F
square
#4F107F #7F1710 #407F10 #10777F
split-complementary
#4F107F #777F10 #107F17
monochromatic
#11031B #2D0949 #4F107F #7117B5 #9226E4

Accessibility & contrast

On white

12.26
#4F107F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F107F
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F107F#FFFFFF#000000##FFFFFF
##4F107F1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f107f;
/* rgb */ color: rgb(79, 16, 127);
/* oklch */ color: oklch(35.1% 0.167 304.0);
Tailwind
colors: {
  custom: {
    50: '#8659a5',
    500: '#4f107f',
    950: '#000000',
  },
}
SCSS
$custom: #4f107f;
$custom-light: #8659a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f107f",
  "rgb": {
    "r": 79,
    "g": 16,
    "b": 127
  },
  "hsl": {
    "h": 274.054,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35104,
    "c": 0.16719,
    "h": 304
  },
  "luminance": 0.03565
}

Semantic roles & 50–950 ramp

primary
#4F107F
secondary
#6DB536
accent
#F43487
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F107F

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

Preview Lab → · Contrast checker → · Palette generator →

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