#4F2C8D#4F2C8D

#4F2C8D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.152 H 295.1°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#4F2C8D
RGBrgb(79, 44, 141)
HSLhsl(262, 52%, 36%)
HSVhsv(262, 69%, 55%)
CMYKcmyk(44%, 68.8%, 0%, 44.7%)
CIE-LABlab(27.81, 38.49, -48.17)
CIE-LCHlch(27.81, 61.66, 308.62°)
OKLaboklab(39.45% 0.0644 -0.1377)
OKLCHoklch(39.45% 0.152 295.1)
XYZxyz(8.9316, 5.3865, 25.7633)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2C8D #6A8D2C
analogous
#2C3A8D #4F2C8D #802C8D
triadic
#4F2C8D #8D4F2C #2C8D4F
tetradic
#4F2C8D #8D2C3A #6A8D2C #2C8D80
square
#4F2C8D #8D2C3A #6A8D2C #2C8D80
split-complementary
#4F2C8D #8D802C #3A8D2C
monochromatic
#1B0F30 #351D5E #4F2C8D #693BBC #8B65CF

Accessibility & contrast

On white

10.11
#4F2C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4F2C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2C8D
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2C8D#FFFFFF#000000##FFFFFF
##4F2C8D1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#3E4358
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4f2c8d;
/* rgb */ color: rgb(79, 44, 141);
/* oklch */ color: oklch(39.4% 0.152 295.1);
Tailwind
colors: {
  custom: {
    50: '#8668af',
    500: '#4f2c8d',
    950: '#000000',
  },
}
SCSS
$custom: #4f2c8d;
$custom-light: #8668af;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2c8d",
  "rgb": {
    "r": 79,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 261.649,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39447,
    "c": 0.15196,
    "h": 295.1
  },
  "luminance": 0.05387
}

Semantic roles & 50–950 ramp

primary
#4F2C8D
secondary
#96B560
accent
#DC4CA8
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F2C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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