#4F3291#4F3291

#4F3291 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.7% C 0.149 H 292.6°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#4F3291
RGBrgb(79, 50, 145)
HSLhsl(258, 49%, 38%)
HSVhsv(258, 66%, 57%)
CMYKcmyk(45.5%, 65.5%, 0%, 43.1%)
CIE-LABlab(29.38, 36.23, -48.09)
CIE-LCHlch(29.38, 60.20, 306.99°)
OKLaboklab(40.68% 0.0572 -0.1374)
OKLCHoklch(40.68% 0.149 292.6)
XYZxyz(9.4745, 5.9875, 27.4391)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F3291 #749132
analogous
#324491 #4F3291 #7E3291
triadic
#4F3291 #914F32 #32914F
tetradic
#4F3291 #913244 #749132 #32917E
square
#4F3291 #913244 #749132 #32917E
split-complementary
#4F3291 #917E32 #449132
monochromatic
#1D1336 #362263 #4F3291 #6842BE #8C70CE

Accessibility & contrast

On white

9.56
#4F3291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4F3291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F3291
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F3291#FFFFFF#000000##FFFFFF
##4F32911.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004794
Deuteranopia (green-blind)
#00438F
Tritanopia (blue-blind)
#3C485D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f3291;
/* rgb */ color: rgb(79, 50, 145);
/* oklch */ color: oklch(40.7% 0.149 292.6);
Tailwind
colors: {
  custom: {
    50: '#866cb2',
    500: '#4f3291',
    950: '#000000',
  },
}
SCSS
$custom: #4f3291;
$custom-light: #866cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f3291",
  "rgb": {
    "r": 79,
    "g": 50,
    "b": 145
  },
  "hsl": {
    "h": 258.316,
    "s": 48.718,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4068,
    "c": 0.14884,
    "h": 292.6
  },
  "luminance": 0.05988
}

Semantic roles & 50–950 ramp

primary
#4F3291
secondary
#9EB569
accent
#D850AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4F3291

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

Preview Lab → · Contrast checker → · Palette generator →

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