#4F299A#4F299A

#4F299A is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.171 H 292.3°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#4F299A
RGBrgb(79, 41, 154)
HSLhsl(260, 58%, 38%)
HSVhsv(260, 73%, 60%)
CMYKcmyk(48.7%, 73.4%, 0%, 39.6%)
CIE-LABlab(28.33, 43.77, -55.32)
CIE-LCHlch(28.33, 70.54, 308.35°)
OKLaboklab(40.16% 0.065 -0.1586)
OKLCHoklch(40.16% 0.171 292.3)
XYZxyz(9.8485, 5.5809, 31.1239)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F299A #749A29
analogous
#293B9A #4F299A #87299A
triadic
#4F299A #9A4F29 #299A4F
tetradic
#4F299A #9A293B #749A29 #299A87
square
#4F299A #9A293B #749A29 #299A87
split-complementary
#4F299A #9A8729 #3B9A29
monochromatic
#1D0F39 #361C6A #4F299A #6837CA #8C67D7

Accessibility & contrast

On white

9.92
#4F299A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4F299A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F299A
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F299A#FFFFFF#000000##FFFFFF
##4F299A1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#004198
Tritanopia (blue-blind)
#37475F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4f299a;
/* rgb */ color: rgb(79, 41, 154);
/* oklch */ color: oklch(40.2% 0.171 292.3);
Tailwind
colors: {
  custom: {
    50: '#8866b9',
    500: '#4f299a',
    950: '#000000',
  },
}
SCSS
$custom: #4f299a;
$custom-light: #8866b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f299a",
  "rgb": {
    "r": 79,
    "g": 41,
    "b": 154
  },
  "hsl": {
    "h": 260.177,
    "s": 57.949,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4016,
    "c": 0.17142,
    "h": 292.3
  },
  "luminance": 0.05581
}

Semantic roles & 50–950 ramp

primary
#4F299A
secondary
#9EBD62
accent
#E147AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F299A

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

Preview Lab → · Contrast checker → · Palette generator →

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