#4F2188#4F2188

#4F2188 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.160 H 298.7°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#4F2188
RGBrgb(79, 33, 136)
HSLhsl(267, 61%, 33%)
HSVhsv(267, 76%, 53%)
CMYKcmyk(41.9%, 75.7%, 0%, 46.7%)
CIE-LABlab(25.34, 42.83, -49.07)
CIE-LCHlch(25.34, 65.14, 311.11°)
OKLaboklab(37.56% 0.0767 -0.1403)
OKLCHoklch(37.56% 0.16 298.7)
XYZxyz(8.2111, 4.5274, 23.7291)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2188 #5A8821
analogous
#212688 #4F2188 #822188
triadic
#4F2188 #884F21 #21884F
tetradic
#4F2188 #882126 #5A8821 #218882
square
#4F2188 #882126 #5A8821 #218882
split-complementary
#4F2188 #888221 #268821
monochromatic
#160925 #321557 #4F2188 #6C2DB9 #8B4FD4

Accessibility & contrast

On white

11.02
#4F2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4F2188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2188
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2188#FFFFFF#000000##FFFFFF
##4F21881.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003B86
Tritanopia (blue-blind)
#413B53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f2188;
/* rgb */ color: rgb(79, 33, 136);
/* oklch */ color: oklch(37.6% 0.160 298.7);
Tailwind
colors: {
  custom: {
    50: '#8661ac',
    500: '#4f2188',
    950: '#000000',
  },
}
SCSS
$custom: #4f2188;
$custom-light: #8661ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2188",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 266.796,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37562,
    "c": 0.15987,
    "h": 298.7
  },
  "luminance": 0.04528
}

Semantic roles & 50–950 ramp

primary
#4F2188
secondary
#88B84D
accent
#E4449C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F2188

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

Preview Lab → · Contrast checker → · Palette generator →

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