#4F2397#4F2397

#4F2397 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.175 H 294.0°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#4F2397
RGBrgb(79, 35, 151)
HSLhsl(263, 62%, 36%)
HSVhsv(263, 77%, 59%)
CMYKcmyk(47.7%, 76.8%, 0%, 40.8%)
CIE-LABlab(27.01, 45.90, -55.63)
CIE-LCHlch(27.01, 72.13, 309.53°)
OKLaboklab(39.15% 0.0711 -0.1595)
OKLCHoklch(39.15% 0.175 294)
XYZxyz(9.4099, 5.0984, 29.7605)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2397 #6B9723
analogous
#233197 #4F2397 #892397
triadic
#4F2397 #974F23 #23974F
tetradic
#4F2397 #972331 #6B9723 #239789
square
#4F2397 #972331 #6B9723 #239789
split-complementary
#4F2397 #978923 #319723
monochromatic
#1B0C34 #351765 #4F2397 #692FC9 #8B5BD9

Accessibility & contrast

On white

10.40
#4F2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4F2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2397
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2397#FFFFFF#000000##FFFFFF
##4F23971.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#39425C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f2397;
/* rgb */ color: rgb(79, 35, 151);
/* oklch */ color: oklch(39.1% 0.175 294.0);
Tailwind
colors: {
  custom: {
    50: '#8863b7',
    500: '#4f2397',
    950: '#000000',
  },
}
SCSS
$custom: #4f2397;
$custom-light: #8863b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2397",
  "rgb": {
    "r": 79,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 262.759,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39149,
    "c": 0.17464,
    "h": 294
  },
  "luminance": 0.05099
}

Semantic roles & 50–950 ramp

primary
#4F2397
secondary
#97BE58
accent
#E542A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4F2397

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

Preview Lab → · Contrast checker → · Palette generator →

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