#4F2A9C#4F2A9C

#4F2A9C is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.173 H 291.6°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#4F2A9C
RGBrgb(79, 42, 156)
HSLhsl(259, 58%, 39%)
HSVhsv(259, 73%, 61%)
CMYKcmyk(49.4%, 73.1%, 0%, 38.8%)
CIE-LABlab(28.69, 43.82, -55.95)
CIE-LCHlch(28.69, 71.07, 308.07°)
OKLaboklab(40.47% 0.0636 -0.1605)
OKLCHoklch(40.47% 0.173 291.6)
XYZxyz(10.0515, 5.7181, 32.0201)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2A9C #779C2A
analogous
#2A3E9C #4F2A9C #882A9C
triadic
#4F2A9C #9C4F2A #2A9C4F
tetradic
#4F2A9C #9C2A3E #779C2A #2A9C88
square
#4F2A9C #9C2A3E #779C2A #2A9C88
split-complementary
#4F2A9C #9C882A #3E9C2A
monochromatic
#1E103C #371D6C #4F2A9C #6839CA #8D6AD7

Accessibility & contrast

On white

9.80
#4F2A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4F2A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2A9C
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2A9C#FFFFFF#000000##FFFFFF
##4F2A9C1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#364860
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4f2a9c;
/* rgb */ color: rgb(79, 42, 156);
/* oklch */ color: oklch(40.5% 0.173 291.6);
Tailwind
colors: {
  custom: {
    50: '#8867ba',
    500: '#4f2a9c',
    950: '#000000',
  },
}
SCSS
$custom: #4f2a9c;
$custom-light: #8867ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2a9c",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 259.474,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4047,
    "c": 0.17264,
    "h": 291.6
  },
  "luminance": 0.05718
}

Semantic roles & 50–950 ramp

primary
#4F2A9C
secondary
#A0BD65
accent
#E147AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F2A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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