#4F219D#4F219D

#4F219D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.183 H 292.8°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#4F219D
RGBrgb(79, 33, 157)
HSLhsl(262, 65%, 37%)
HSVhsv(262, 79%, 62%)
CMYKcmyk(49.7%, 79%, 0%, 38.4%)
CIE-LABlab(27.25, 48.44, -58.91)
CIE-LCHlch(27.25, 76.27, 309.43°)
OKLaboklab(39.49% 0.071 -0.1691)
OKLCHoklch(39.49% 0.183 292.8)
XYZxyz(9.8524, 5.1840, 32.3732)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F219D #6F9D21
analogous
#21319D #4F219D #8D219D
triadic
#4F219D #9D4F21 #219D4F
tetradic
#4F219D #9D2131 #6F9D21 #219D8D
square
#4F219D #9D2131 #6F9D21 #219D8D
split-complementary
#4F219D #9D8D21 #319D21
monochromatic
#1C0C38 #36166A #4F219D #682CD0 #8C5CDD

Accessibility & contrast

On white

10.31
#4F219D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4F219D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F219D
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F219D#FFFFFF#000000##FFFFFF
##4F219D1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#003E9B
Tritanopia (blue-blind)
#36445F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f219d;
/* rgb */ color: rgb(79, 33, 157);
/* oklch */ color: oklch(39.5% 0.183 292.8);
Tailwind
colors: {
  custom: {
    50: '#8962bb',
    500: '#4f219d',
    950: '#000000',
  },
}
SCSS
$custom: #4f219d;
$custom-light: #8962bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4f219d",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 157
  },
  "hsl": {
    "h": 262.258,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39487,
    "c": 0.18341,
    "h": 292.8
  },
  "luminance": 0.05184
}

Semantic roles & 50–950 ramp

primary
#4F219D
secondary
#9AC159
accent
#E840AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4F219D

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

Preview Lab → · Contrast checker → · Palette generator →

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