#4F208E#4F208E

#4F208E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.168 H 297.0°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#4F208E
RGBrgb(79, 32, 142)
HSLhsl(266, 63%, 34%)
HSVhsv(266, 77%, 56%)
CMYKcmyk(44.4%, 77.5%, 0%, 44.3%)
CIE-LABlab(25.71, 44.89, -52.22)
CIE-LCHlch(25.71, 68.86, 310.68°)
OKLaboklab(37.98% 0.0761 -0.1495)
OKLCHoklch(37.98% 0.168 297)
XYZxyz(8.6222, 4.6481, 26.0288)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F208E #5F8E20
analogous
#20288E #4F208E #86208E
triadic
#4F208E #8E4F20 #208E4F
tetradic
#4F208E #8E2028 #5F8E20 #208E86
square
#4F208E #8E2028 #5F8E20 #208E86
split-complementary
#4F208E #8E8620 #288E20
monochromatic
#17092A #33155C #4F208E #6B2BC0 #8A51D8

Accessibility & contrast

On white

10.88
#4F208E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4F208E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F208E
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F208E#FFFFFF#000000##FFFFFF
##4F208E1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#3E3D56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4f208e;
/* rgb */ color: rgb(79, 32, 142);
/* oklch */ color: oklch(38.0% 0.168 297.0);
Tailwind
colors: {
  custom: {
    50: '#8761b0',
    500: '#4f208e',
    950: '#000000',
  },
}
SCSS
$custom: #4f208e;
$custom-light: #8761b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f208e",
  "rgb": {
    "r": 79,
    "g": 32,
    "b": 142
  },
  "hsl": {
    "h": 265.636,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37982,
    "c": 0.16774,
    "h": 297
  },
  "luminance": 0.04648
}

Semantic roles & 50–950 ramp

primary
#4F208E
secondary
#8DBB4F
accent
#E642A0
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4F208E

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

Preview Lab → · Contrast checker → · Palette generator →

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