#4F2182#4F2182

#4F2182 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.153 H 300.7°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#4F2182
RGBrgb(79, 33, 130)
HSLhsl(268, 60%, 32%)
HSVhsv(268, 75%, 51%)
CMYKcmyk(39.2%, 74.6%, 0%, 49%)
CIE-LABlab(24.83, 41.25, -46.15)
CIE-LCHlch(24.83, 61.89, 311.79°)
OKLaboklab(37.04% 0.0781 -0.1317)
OKLCHoklch(37.04% 0.153 300.7)
XYZxyz(7.7966, 4.3616, 21.5459)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2182 #548221
analogous
#212382 #4F2182 #802182
triadic
#4F2182 #824F21 #21824F
tetradic
#4F2182 #822123 #548221 #218280
square
#4F2182 #822123 #548221 #218280
split-complementary
#4F2182 #828021 #238221
monochromatic
#140820 #311551 #4F2182 #6D2DB3 #8B4CD2

Accessibility & contrast

On white

11.22
#4F2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4F2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2182
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2182#FFFFFF#000000##FFFFFF
##4F21821.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003A80
Tritanopia (blue-blind)
#44394F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f2182;
/* rgb */ color: rgb(79, 33, 130);
/* oklch */ color: oklch(37.0% 0.153 300.7);
Tailwind
colors: {
  custom: {
    50: '#8561a7',
    500: '#4f2182',
    950: '#000000',
  },
}
SCSS
$custom: #4f2182;
$custom-light: #8561a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2182",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 268.454,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37042,
    "c": 0.15306,
    "h": 300.7
  },
  "luminance": 0.04362
}

Semantic roles & 50–950 ramp

primary
#4F2182
secondary
#82B44A
accent
#E34598
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #4F2182

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

Preview Lab → · Contrast checker → · Palette generator →

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