#4F2A8A#4F2A8A

#4F2A8A is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.9% C 0.151 H 296.4°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#4F2A8A
RGBrgb(79, 42, 138)
HSLhsl(263, 53%, 35%)
HSVhsv(263, 70%, 54%)
CMYKcmyk(42.8%, 69.6%, 0%, 45.9%)
CIE-LABlab(27.17, 38.74, -47.35)
CIE-LCHlch(27.17, 61.18, 309.29°)
OKLaboklab(38.91% 0.067 -0.1352)
OKLCHoklch(38.91% 0.151 296.4)
XYZxyz(8.6387, 5.1530, 24.5793)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2A8A #658A2A
analogous
#2A358A #4F2A8A #7F2A8A
triadic
#4F2A8A #8A4F2A #2A8A4F
tetradic
#4F2A8A #8A2A35 #658A2A #2A8A7F
square
#4F2A8A #8A2A35 #658A2A #2A8A7F
split-complementary
#4F2A8A #8A7F2A #358A2A
monochromatic
#190D2C #341C5B #4F2A8A #6A38B9 #8B60CF

Accessibility & contrast

On white

10.34
#4F2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4F2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2A8A
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2A8A#FFFFFF#000000##FFFFFF
##4F2A8A1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#404156
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f2a8a;
/* rgb */ color: rgb(79, 42, 138);
/* oklch */ color: oklch(38.9% 0.151 296.4);
Tailwind
colors: {
  custom: {
    50: '#8666ad',
    500: '#4f2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #4f2a8a;
$custom-light: #8666ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2a8a",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 263.125,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3891,
    "c": 0.15094,
    "h": 296.4
  },
  "luminance": 0.05153
}

Semantic roles & 50–950 ramp

primary
#4F2A8A
secondary
#92B45B
accent
#DD4BA5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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