#4F208B#4F208B

#4F208B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.164 H 297.9°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#4F208B
RGBrgb(79, 32, 139)
HSLhsl(266, 63%, 34%)
HSVhsv(266, 77%, 55%)
CMYKcmyk(43.2%, 77%, 0%, 45.5%)
CIE-LABlab(25.44, 44.09, -50.79)
CIE-LCHlch(25.44, 67.26, 310.96°)
OKLaboklab(37.71% 0.0769 -0.1453)
OKLCHoklch(37.71% 0.164 297.9)
XYZxyz(8.4000, 4.5592, 24.8585)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F208B #5C8B20
analogous
#20268B #4F208B #84208B
triadic
#4F208B #8B4F20 #208B4F
tetradic
#4F208B #8B2026 #5C8B20 #208B84
square
#4F208B #8B2026 #5C8B20 #208B84
split-complementary
#4F208B #8B8420 #268B20
monochromatic
#160928 #331559 #4F208B #6B2BBD #8A4FD6

Accessibility & contrast

On white

10.98
#4F208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F208B
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F208B#FFFFFF#000000##FFFFFF
##4F208B1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f208b;
/* rgb */ color: rgb(79, 32, 139);
/* oklch */ color: oklch(37.7% 0.164 297.9);
Tailwind
colors: {
  custom: {
    50: '#8661ae',
    500: '#4f208b',
    950: '#000000',
  },
}
SCSS
$custom: #4f208b;
$custom-light: #8661ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f208b",
  "rgb": {
    "r": 79,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 266.355,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37712,
    "c": 0.16439,
    "h": 297.9
  },
  "luminance": 0.04559
}

Semantic roles & 50–950 ramp

primary
#4F208B
secondary
#8ABA4D
accent
#E6429E
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F208B

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

Preview Lab → · Contrast checker → · Palette generator →

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