#4F218B#4F218B

#4F218B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.163 H 297.7°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#4F218B
RGBrgb(79, 33, 139)
HSLhsl(266, 62%, 34%)
HSVhsv(266, 76%, 55%)
CMYKcmyk(43.2%, 76.3%, 0%, 45.5%)
CIE-LABlab(25.61, 43.62, -50.52)
CIE-LCHlch(25.61, 66.75, 310.81°)
OKLaboklab(37.83% 0.076 -0.1445)
OKLCHoklch(37.83% 0.163 297.7)
XYZxyz(8.4273, 4.6139, 24.8677)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F218B #5D8B21
analogous
#21288B #4F218B #84218B
triadic
#4F218B #8B4F21 #218B4F
tetradic
#4F218B #8B2128 #5D8B21 #218B84
square
#4F218B #8B2128 #5D8B21 #218B84
split-complementary
#4F218B #8B8421 #288B21
monochromatic
#170A28 #33155A #4F218B #6B2DBC #8A51D6

Accessibility & contrast

On white

10.92
#4F218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4F218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F218B
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F218B#FFFFFF#000000##FFFFFF
##4F218B1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#403D54
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4f218b;
/* rgb */ color: rgb(79, 33, 139);
/* oklch */ color: oklch(37.8% 0.163 297.7);
Tailwind
colors: {
  custom: {
    50: '#8661ae',
    500: '#4f218b',
    950: '#000000',
  },
}
SCSS
$custom: #4f218b;
$custom-light: #8661ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f218b",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 266.038,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37828,
    "c": 0.16326,
    "h": 297.7
  },
  "luminance": 0.04614
}

Semantic roles & 50–950 ramp

primary
#4F218B
secondary
#8BB94F
accent
#E5439F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F218B

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

Preview Lab → · Contrast checker → · Palette generator →

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