#4F2A8E#4F2A8E

#4F2A8E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.2% C 0.156 H 295.2°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#4F2A8E
RGBrgb(79, 42, 142)
HSLhsl(262, 54%, 36%)
HSVhsv(262, 70%, 56%)
CMYKcmyk(44.4%, 70.4%, 0%, 44.3%)
CIE-LABlab(27.49, 39.86, -49.30)
CIE-LCHlch(27.49, 63.40, 308.96°)
OKLaboklab(39.25% 0.0664 -0.141)
OKLCHoklch(39.25% 0.156 295.2)
XYZxyz(8.9336, 5.2710, 26.1327)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2A8E #698E2A
analogous
#2A378E #4F2A8E #812A8E
triadic
#4F2A8E #8E4F2A #2A8E4F
tetradic
#4F2A8E #8E2A37 #698E2A #2A8E81
square
#4F2A8E #8E2A37 #698E2A #2A8E81
split-complementary
#4F2A8E #8E812A #378E2A
monochromatic
#1A0E30 #351C5F #4F2A8E #6938BD #8B62D1

Accessibility & contrast

On white

10.22
#4F2A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4F2A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2A8E
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2A8E#FFFFFF#000000##FFFFFF
##4F2A8E1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#3E4358
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f2a8e;
/* rgb */ color: rgb(79, 42, 142);
/* oklch */ color: oklch(39.2% 0.156 295.2);
Tailwind
colors: {
  custom: {
    50: '#8666b0',
    500: '#4f2a8e',
    950: '#000000',
  },
}
SCSS
$custom: #4f2a8e;
$custom-light: #8666b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2a8e",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 262.2,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39247,
    "c": 0.15581,
    "h": 295.2
  },
  "luminance": 0.05271
}

Semantic roles & 50–950 ramp

primary
#4F2A8E
secondary
#95B65D
accent
#DE4AA7
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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