#4F2A96#4F2A96

#4F2A96 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.9% C 0.165 H 293.1°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#4F2A96
RGBrgb(79, 42, 150)
HSLhsl(261, 56%, 38%)
HSVhsv(261, 72%, 59%)
CMYKcmyk(47.3%, 72%, 0%, 41.2%)
CIE-LABlab(28.17, 42.12, -53.13)
CIE-LCHlch(28.17, 67.80, 308.40°)
OKLaboklab(39.94% 0.0649 -0.1522)
OKLCHoklch(39.94% 0.165 293.1)
XYZxyz(9.5559, 5.5199, 29.4102)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2A96 #71962A
analogous
#2A3B96 #4F2A96 #852A96
triadic
#4F2A96 #964F2A #2A964F
tetradic
#4F2A96 #962A3B #71962A #2A9685
square
#4F2A96 #962A3B #71962A #2A9685
split-complementary
#4F2A96 #96852A #3B962A
monochromatic
#1D0F36 #361D66 #4F2A96 #6837C6 #8C66D4

Accessibility & contrast

On white

9.98
#4F2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4F2A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2A96
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2A96#FFFFFF#000000##FFFFFF
##4F2A961.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#004094
Tritanopia (blue-blind)
#3A465D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4f2a96;
/* rgb */ color: rgb(79, 42, 150);
/* oklch */ color: oklch(39.9% 0.165 293.1);
Tailwind
colors: {
  custom: {
    50: '#8767b6',
    500: '#4f2a96',
    950: '#000000',
  },
}
SCSS
$custom: #4f2a96;
$custom-light: #8767b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2a96",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 260.556,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39937,
    "c": 0.16547,
    "h": 293.1
  },
  "luminance": 0.0552
}

Semantic roles & 50–950 ramp

primary
#4F2A96
secondary
#9CBA61
accent
#E048AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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