#4F2A8B#4F2A8B

#4F2A8B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.152 H 296.1°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#4F2A8B
RGBrgb(79, 42, 139)
HSLhsl(263, 54%, 35%)
HSVhsv(263, 70%, 55%)
CMYKcmyk(43.2%, 69.8%, 0%, 45.5%)
CIE-LABlab(27.25, 39.02, -47.84)
CIE-LCHlch(27.25, 61.74, 309.20°)
OKLaboklab(38.99% 0.0669 -0.1367)
OKLCHoklch(38.99% 0.152 296.1)
XYZxyz(8.7114, 5.1821, 24.9624)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2A8B #668B2A
analogous
#2A358B #4F2A8B #7F2A8B
triadic
#4F2A8B #8B4F2A #2A8B4F
tetradic
#4F2A8B #8B2A35 #668B2A #2A8B7F
square
#4F2A8B #8B2A35 #668B2A #2A8B7F
split-complementary
#4F2A8B #8B7F2A #358B2A
monochromatic
#1A0E2D #341C5C #4F2A8B #6A38BA #8B60CF

Accessibility & contrast

On white

10.31
#4F2A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4F2A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2A8B
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2A8B#FFFFFF#000000##FFFFFF
##4F2A8B1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#3F4157
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f2a8b;
/* rgb */ color: rgb(79, 42, 139);
/* oklch */ color: oklch(39.0% 0.152 296.1);
Tailwind
colors: {
  custom: {
    50: '#8666ae',
    500: '#4f2a8b',
    950: '#000000',
  },
}
SCSS
$custom: #4f2a8b;
$custom-light: #8666ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2a8b",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 262.887,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38994,
    "c": 0.15216,
    "h": 296.1
  },
  "luminance": 0.05182
}

Semantic roles & 50–950 ramp

primary
#4F2A8B
secondary
#93B55C
accent
#DD4BA5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F2A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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