#4F107E#4F107E

#4F107E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 35.0% C 0.166 H 304.3°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#4F107E
RGBrgb(79, 16, 126)
HSLhsl(274, 77%, 28%)
HSVhsv(274, 87%, 49%)
CMYKcmyk(37.3%, 87.3%, 0%, 50.6%)
CIE-LABlab(22.09, 47.15, -48.10)
CIE-LCHlch(22.09, 67.36, 314.43°)
OKLaboklab(35.01% 0.0937 -0.1373)
OKLCHoklch(35.01% 0.166 304.3)
XYZxyz(7.1748, 3.5392, 20.0398)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F107E #3F7E10
analogous
#18107E #4F107E #7E1076
triadic
#4F107E #7E4F10 #107E4F
tetradic
#4F107E #7E1810 #3F7E10 #10767E
square
#4F107E #7E1810 #3F7E10 #10767E
split-complementary
#4F107E #767E10 #107E18
monochromatic
#11031B #2D0948 #4F107E #7117B4 #9225E3

Accessibility & contrast

On white

12.30
#4F107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F107E
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F107E#FFFFFF#000000##FFFFFF
##4F107E1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f107e;
/* rgb */ color: rgb(79, 16, 126);
/* oklch */ color: oklch(35.0% 0.166 304.3);
Tailwind
colors: {
  custom: {
    50: '#8659a4',
    500: '#4f107e',
    950: '#000000',
  },
}
SCSS
$custom: #4f107e;
$custom-light: #8659a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f107e",
  "rgb": {
    "r": 79,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 274.364,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35011,
    "c": 0.16622,
    "h": 304.3
  },
  "luminance": 0.03539
}

Semantic roles & 50–950 ramp

primary
#4F107E
secondary
#6CB436
accent
#F43486
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F107E

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

Preview Lab → · Contrast checker → · Palette generator →

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