#4F2189#4F2189

#4F2189 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.161 H 298.4°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#4F2189
RGBrgb(79, 33, 137)
HSLhsl(267, 61%, 33%)
HSVhsv(267, 76%, 54%)
CMYKcmyk(42.3%, 75.9%, 0%, 46.3%)
CIE-LABlab(25.43, 43.09, -49.56)
CIE-LCHlch(25.43, 65.67, 311.01°)
OKLaboklab(37.65% 0.0765 -0.1417)
OKLCHoklch(37.65% 0.161 298.4)
XYZxyz(8.2825, 4.5560, 24.1051)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2189 #5B8921
analogous
#212789 #4F2189 #832189
triadic
#4F2189 #894F21 #21894F
tetradic
#4F2189 #892127 #5B8921 #218983
square
#4F2189 #892127 #5B8921 #218983
split-complementary
#4F2189 #898321 #278921
monochromatic
#160926 #331558 #4F2189 #6B2DBA #8B50D5

Accessibility & contrast

On white

10.99
#4F2189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F2189
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2189#FFFFFF#000000##FFFFFF
##4F21891.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003B87
Tritanopia (blue-blind)
#413C53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f2189;
/* rgb */ color: rgb(79, 33, 137);
/* oklch */ color: oklch(37.6% 0.161 298.4);
Tailwind
colors: {
  custom: {
    50: '#8661ac',
    500: '#4f2189',
    950: '#000000',
  },
}
SCSS
$custom: #4f2189;
$custom-light: #8661ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2189",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 137
  },
  "hsl": {
    "h": 266.538,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3765,
    "c": 0.161,
    "h": 298.4
  },
  "luminance": 0.04556
}

Semantic roles & 50–950 ramp

primary
#4F2189
secondary
#89B84E
accent
#E4449D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F2189

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

Preview Lab → · Contrast checker → · Palette generator →

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