#4F2A95#4F2A95

#4F2A95 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.8% C 0.164 H 293.3°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#4F2A95
RGBrgb(79, 42, 149)
HSLhsl(261, 56%, 37%)
HSVhsv(261, 72%, 58%)
CMYKcmyk(47%, 71.8%, 0%, 41.6%)
CIE-LABlab(28.08, 41.84, -52.66)
CIE-LCHlch(28.08, 67.25, 308.47°)
OKLaboklab(39.85% 0.0651 -0.1508)
OKLCHoklch(39.85% 0.164 293.3)
XYZxyz(9.4757, 5.4878, 28.9879)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2A95 #70952A
analogous
#2A3A95 #4F2A95 #852A95
triadic
#4F2A95 #954F2A #2A954F
tetradic
#4F2A95 #952A3A #70952A #2A9585
square
#4F2A95 #952A3A #70952A #2A9585
split-complementary
#4F2A95 #95852A #3A952A
monochromatic
#1C0F36 #361D65 #4F2A95 #6837C5 #8C66D4

Accessibility & contrast

On white

10.01
#4F2A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F2A95
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2A95#FFFFFF#000000##FFFFFF
##4F2A951.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004498
Deuteranopia (green-blind)
#004093
Tritanopia (blue-blind)
#3A455C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4f2a95;
/* rgb */ color: rgb(79, 42, 149);
/* oklch */ color: oklch(39.8% 0.164 293.3);
Tailwind
colors: {
  custom: {
    50: '#8767b5',
    500: '#4f2a95',
    950: '#000000',
  },
}
SCSS
$custom: #4f2a95;
$custom-light: #8767b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2a95",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 149
  },
  "hsl": {
    "h": 260.748,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39849,
    "c": 0.16427,
    "h": 293.3
  },
  "luminance": 0.05488
}

Semantic roles & 50–950 ramp

primary
#4F2A95
secondary
#9BBA61
accent
#DF48AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2A95

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

Preview Lab → · Contrast checker → · Palette generator →

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