#4F3D97#4F3D97

#4F3D97 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.0% C 0.141 H 288.2°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#4F3D97
RGBrgb(79, 61, 151)
HSLhsl(252, 42%, 42%)
HSVhsv(252, 60%, 59%)
CMYKcmyk(47.7%, 59.6%, 0%, 40.8%)
CIE-LABlab(32.33, 31.41, -46.98)
CIE-LCHlch(32.33, 56.51, 303.77°)
OKLaboklab(42.98% 0.0441 -0.1341)
OKLCHoklch(42.98% 0.141 288.2)
XYZxyz(10.4775, 7.2337, 30.1163)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F3D97 #85973D
analogous
#3D5897 #4F3D97 #7C3D97
triadic
#4F3D97 #974F3D #3D974F
tetradic
#4F3D97 #973D58 #85973D #3D977C
square
#4F3D97 #973D58 #85973D #3D977C
split-complementary
#4F3D97 #977C3D #58973D
monochromatic
#211A40 #382B6B #4F3D97 #6A56BB #9182CC

Accessibility & contrast

On white

8.58
#4F3D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#4F3D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F3D97
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F3D97#FFFFFF#000000##FFFFFF
##4F3D971.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#004A95
Tritanopia (blue-blind)
#385164
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4f3d97;
/* rgb */ color: rgb(79, 61, 151);
/* oklch */ color: oklch(43.0% 0.141 288.2);
Tailwind
colors: {
  custom: {
    50: '#8673b6',
    500: '#4f3d97',
    950: '#000000',
  },
}
SCSS
$custom: #4f3d97;
$custom-light: #8673b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f3d97",
  "rgb": {
    "r": 79,
    "g": 61,
    "b": 151
  },
  "hsl": {
    "h": 252,
    "s": 42.453,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42977,
    "c": 0.1412,
    "h": 288.2
  },
  "luminance": 0.07234
}

Semantic roles & 50–950 ramp

primary
#4F3D97
secondary
#AAB779
accent
#D256B9
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #4F3D97

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

Preview Lab → · Contrast checker → · Palette generator →

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