#4F2A9E#4F2A9E

#4F2A9E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.175 H 291.1°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#4F2A9E
RGBrgb(79, 42, 158)
HSLhsl(259, 58%, 39%)
HSVhsv(259, 73%, 62%)
CMYKcmyk(50%, 73.4%, 0%, 38%)
CIE-LABlab(28.87, 44.39, -56.88)
CIE-LCHlch(28.87, 72.15, 307.97°)
OKLaboklab(40.65% 0.0631 -0.1632)
OKLCHoklch(40.65% 0.175 291.1)
XYZxyz(10.2222, 5.7864, 32.9194)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2A9E #799E2A
analogous
#2A3F9E #4F2A9E #892A9E
triadic
#4F2A9E #9E4F2A #2A9E4F
tetradic
#4F2A9E #9E2A3F #799E2A #2A9E89
square
#4F2A9E #9E2A3F #799E2A #2A9E89
split-complementary
#4F2A9E #9E892A #3F9E2A
monochromatic
#1F103D #371D6E #4F2A9E #683ACB #8E6BD8

Accessibility & contrast

On white

9.73
#4F2A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4F2A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2A9E
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2A9E#FFFFFF#000000##FFFFFF
##4F2A9E1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#354961
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4f2a9e;
/* rgb */ color: rgb(79, 42, 158);
/* oklch */ color: oklch(40.6% 0.175 291.1);
Tailwind
colors: {
  custom: {
    50: '#8867bc',
    500: '#4f2a9e',
    950: '#000000',
  },
}
SCSS
$custom: #4f2a9e;
$custom-light: #8867bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2a9e",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 259.138,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.4065,
    "c": 0.17501,
    "h": 291.1
  },
  "luminance": 0.05787
}

Semantic roles & 50–950 ramp

primary
#4F2A9E
secondary
#A2BE66
accent
#E147B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F2A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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