#4F208C#4F208C

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

Color values

HEX#4F208C
RGBrgb(79, 32, 140)
HSLhsl(266, 63%, 34%)
HSVhsv(266, 77%, 55%)
CMYKcmyk(43.6%, 77.1%, 0%, 45.1%)
CIE-LABlab(25.53, 44.36, -51.27)
CIE-LCHlch(25.53, 67.79, 310.87°)
OKLaboklab(37.8% 0.0766 -0.1467)
OKLCHoklch(37.8% 0.166 297.6)
XYZxyz(8.4734, 4.5886, 25.2451)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F208C #5D8C20
analogous
#20278C #4F208C #85208C
triadic
#4F208C #8C4F20 #208C4F
tetradic
#4F208C #8C2027 #5D8C20 #208C85
square
#4F208C #8C2027 #5D8C20 #208C85
split-complementary
#4F208C #8C8520 #278C20
monochromatic
#170928 #33155A #4F208C #6B2BBE #8A50D7

Accessibility & contrast

On white

10.95
#4F208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F208C
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F208C#FFFFFF#000000##FFFFFF
##4F208C1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#3F3D55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f208c;
/* rgb */ color: rgb(79, 32, 140);
/* oklch */ color: oklch(37.8% 0.166 297.6);
Tailwind
colors: {
  custom: {
    50: '#8761af',
    500: '#4f208c',
    950: '#000000',
  },
}
SCSS
$custom: #4f208c;
$custom-light: #8761af;
$custom-dark: #000000;
JSON
{
  "hex": "#4f208c",
  "rgb": {
    "r": 79,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 266.111,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37801,
    "c": 0.1655,
    "h": 297.6
  },
  "luminance": 0.04589
}

Semantic roles & 50–950 ramp

primary
#4F208C
secondary
#8BBA4E
accent
#E6429F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F208C

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

Preview Lab → · Contrast checker → · Palette generator →

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