#4F2B7E#4F2B7E

#4F2B7E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.1% C 0.135 H 300.0°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#4F2B7E
RGBrgb(79, 43, 126)
HSLhsl(266, 49%, 33%)
HSVhsv(266, 66%, 49%)
CMYKcmyk(37.3%, 65.9%, 0%, 50.6%)
CIE-LABlab(26.44, 34.86, -41.02)
CIE-LCHlch(26.44, 53.83, 310.35°)
OKLaboklab(38.09% 0.0673 -0.1166)
OKLCHoklch(38.09% 0.135 300)
XYZxyz(7.8533, 4.8963, 20.2660)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2B7E #5A7E2B
analogous
#2B317E #4F2B7E #782B7E
triadic
#4F2B7E #7E4F2B #2B7E4F
tetradic
#4F2B7E #7E2B31 #5A7E2B #2B7E78
square
#4F2B7E #7E2B31 #5A7E2B #2B7E78
split-complementary
#4F2B7E #7E782B #317E2B
monochromatic
#160C23 #321B50 #4F2B7E #6C3BAC #8B5CC7

Accessibility & contrast

On white

10.61
#4F2B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4F2B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2B7E
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2B7E#FFFFFF#000000##FFFFFF
##4F2B7E1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#063E7C
Tritanopia (blue-blind)
#453D50
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4f2b7e;
/* rgb */ color: rgb(79, 43, 126);
/* oklch */ color: oklch(38.1% 0.135 300.0);
Tailwind
colors: {
  custom: {
    50: '#8466a4',
    500: '#4f2b7e',
    950: '#000000',
  },
}
SCSS
$custom: #4f2b7e;
$custom-light: #8466a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2b7e",
  "rgb": {
    "r": 79,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 266.024,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38091,
    "c": 0.13465,
    "h": 300
  },
  "luminance": 0.04896
}

Semantic roles & 50–950 ramp

primary
#4F2B7E
secondary
#88AD58
accent
#D94F9D
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4F2B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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