#4F3F97#4F3F97

#4F3F97 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 43.3% C 0.138 H 287.5°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#4F3F97
RGBrgb(79, 63, 151)
HSLhsl(251, 41%, 42%)
HSVhsv(251, 58%, 59%)
CMYKcmyk(47.7%, 58.3%, 0%, 40.8%)
CIE-LABlab(32.81, 30.17, -46.20)
CIE-LCHlch(32.81, 55.18, 303.14°)
OKLaboklab(43.33% 0.0417 -0.1319)
OKLCHoklch(43.33% 0.138 287.5)
XYZxyz(10.5863, 7.4512, 30.1526)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F3F97 #87973F
analogous
#3F5B97 #4F3F97 #7B3F97
triadic
#4F3F97 #974F3F #3F974F
tetradic
#4F3F97 #973F5B #87973F #3F977B
square
#4F3F97 #973F5B #87973F #3F977B
split-complementary
#4F3F97 #977B3F #5B973F
monochromatic
#221B41 #382D6C #4F3F97 #6B59BA #9185CC

Accessibility & contrast

On white

8.43
#4F3F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#4F3F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F3F97
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F3F97#FFFFFF#000000##FFFFFF
##4F3F971.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034F9A
Deuteranopia (green-blind)
#034B95
Tritanopia (blue-blind)
#385365
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4f3f97;
/* rgb */ color: rgb(79, 63, 151);
/* oklch */ color: oklch(43.3% 0.138 287.5);
Tailwind
colors: {
  custom: {
    50: '#8674b6',
    500: '#4f3f97',
    950: '#000000',
  },
}
SCSS
$custom: #4f3f97;
$custom-light: #8674b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f3f97",
  "rgb": {
    "r": 79,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 250.909,
    "s": 41.121,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4333,
    "c": 0.1383,
    "h": 287.5
  },
  "luminance": 0.07452
}

Semantic roles & 50–950 ramp

primary
#4F3F97
secondary
#ACB67C
accent
#D157BB
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #4F3F97

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

Preview Lab → · Contrast checker → · Palette generator →

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