#4F2A7B#4F2A7B

#4F2A7B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.132 H 301.3°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#4F2A7B
RGBrgb(79, 42, 123)
HSLhsl(267, 49%, 32%)
HSVhsv(267, 66%, 48%)
CMYKcmyk(35.8%, 65.9%, 0%, 51.8%)
CIE-LABlab(26.00, 34.60, -39.83)
CIE-LCHlch(26.00, 52.76, 310.99°)
OKLaboklab(37.71% 0.0688 -0.1131)
OKLCHoklch(37.71% 0.132 301.3)
XYZxyz(7.6267, 4.7482, 19.2497)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2A7B #567B2A
analogous
#2A2E7B #4F2A7B #772A7B
triadic
#4F2A7B #7B4F2A #2A7B4F
tetradic
#4F2A7B #7B2A2E #567B2A #2A7B77
square
#4F2A7B #7B2A2E #567B2A #2A7B77
split-complementary
#4F2A7B #7B772A #2E7B2A
monochromatic
#140B20 #321A4D #4F2A7B #6C3AA9 #8B59C6

Accessibility & contrast

On white

10.77
#4F2A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4F2A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2A7B
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2A7B#FFFFFF#000000##FFFFFF
##4F2A7B1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7E
Deuteranopia (green-blind)
#0B3D79
Tritanopia (blue-blind)
#463C4E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f2a7b;
/* rgb */ color: rgb(79, 42, 123);
/* oklch */ color: oklch(37.7% 0.132 301.3);
Tailwind
colors: {
  custom: {
    50: '#8466a2',
    500: '#4f2a7b',
    950: '#000000',
  },
}
SCSS
$custom: #4f2a7b;
$custom-light: #8466a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2a7b",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 267.407,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37708,
    "c": 0.13238,
    "h": 301.3
  },
  "luminance": 0.04748
}

Semantic roles & 50–950 ramp

primary
#4F2A7B
secondary
#84AC55
accent
#D94F9A
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4F2A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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