#4F1180#4F1180

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

Color values

HEX#4F1180
RGBrgb(79, 17, 128)
HSLhsl(274, 77%, 28%)
HSVhsv(274, 87%, 50%)
CMYKcmyk(38.3%, 86.7%, 0%, 49.8%)
CIE-LABlab(22.38, 47.30, -48.89)
CIE-LCHlch(22.38, 68.03, 314.06°)
OKLaboklab(35.27% 0.0924 -0.1396)
OKLCHoklch(35.27% 0.167 303.5)
XYZxyz(7.3203, 3.6217, 20.7313)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1180 #428011
analogous
#181180 #4F1180 #801179
triadic
#4F1180 #804F11 #11804F
tetradic
#4F1180 #801811 #428011 #117980
square
#4F1180 #801811 #428011 #117980
split-complementary
#4F1180 #798011 #118018
monochromatic
#11041B #2E0A4A #4F1180 #7018B6 #9129E3

Accessibility & contrast

On white

12.18
#4F1180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4F1180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1180
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1180#FFFFFF#000000##FFFFFF
##4F11801.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#00357E
Tritanopia (blue-blind)
#45314B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f1180;
/* rgb */ color: rgb(79, 17, 128);
/* oklch */ color: oklch(35.3% 0.167 303.5);
Tailwind
colors: {
  custom: {
    50: '#8659a6',
    500: '#4f1180',
    950: '#000000',
  },
}
SCSS
$custom: #4f1180;
$custom-light: #8659a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1180",
  "rgb": {
    "r": 79,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 273.514,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35271,
    "c": 0.16738,
    "h": 303.5
  },
  "luminance": 0.03622
}

Semantic roles & 50–950 ramp

primary
#4F1180
secondary
#6FB637
accent
#F33589
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F1180

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

Preview Lab → · Contrast checker → · Palette generator →

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