#4F2291#4F2291

#4F2291 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.169 H 295.8°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#4F2291
RGBrgb(79, 34, 145)
HSLhsl(264, 62%, 35%)
HSVhsv(264, 77%, 57%)
CMYKcmyk(45.5%, 76.6%, 0%, 43.1%)
CIE-LABlab(26.30, 44.75, -53.10)
CIE-LCHlch(26.30, 69.44, 310.13°)
OKLaboklab(38.48% 0.0735 -0.1521)
OKLCHoklch(38.48% 0.169 295.8)
XYZxyz(8.9059, 4.8504, 27.2496)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2291 #649122
analogous
#222D91 #4F2291 #862291
triadic
#4F2291 #914F22 #22914F
tetradic
#4F2291 #91222D #649122 #229186
square
#4F2291 #91222D #649122 #229186
split-complementary
#4F2291 #918622 #2D9122
monochromatic
#190B2E #34165F #4F2291 #6A2EC3 #8A56D7

Accessibility & contrast

On white

10.66
#4F2291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4F2291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2291
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2291#FFFFFF#000000##FFFFFF
##4F22911.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F94
Deuteranopia (green-blind)
#003D8F
Tritanopia (blue-blind)
#3D4058
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f2291;
/* rgb */ color: rgb(79, 34, 145);
/* oklch */ color: oklch(38.5% 0.169 295.8);
Tailwind
colors: {
  custom: {
    50: '#8762b2',
    500: '#4f2291',
    950: '#000000',
  },
}
SCSS
$custom: #4f2291;
$custom-light: #8762b2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2291",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 264.324,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38484,
    "c": 0.16892,
    "h": 295.8
  },
  "luminance": 0.04851
}

Semantic roles & 50–950 ramp

primary
#4F2291
secondary
#91BB53
accent
#E543A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4F2291

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

Preview Lab → · Contrast checker → · Palette generator →

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