#4F2F96#4F2F96

#4F2F96 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.159 H 292.1°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#4F2F96
RGBrgb(79, 47, 150)
HSLhsl(259, 52%, 39%)
HSVhsv(259, 69%, 59%)
CMYKcmyk(47.3%, 68.7%, 0%, 41.2%)
CIE-LABlab(29.15, 39.40, -51.53)
CIE-LCHlch(29.15, 64.86, 307.40°)
OKLaboklab(40.64% 0.0598 -0.1475)
OKLCHoklch(40.64% 0.159 292.1)
XYZxyz(9.7445, 5.8970, 29.4731)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2F96 #76962F
analogous
#2F4296 #4F2F96 #822F96
triadic
#4F2F96 #964F2F #2F964F
tetradic
#4F2F96 #962F42 #76962F #2F9682
square
#4F2F96 #962F42 #76962F #2F9682
split-complementary
#4F2F96 #96822F #42962F
monochromatic
#1E1239 #362067 #4F2F96 #683FC3 #8D6ED2

Accessibility & contrast

On white

9.64
#4F2F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4F2F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2F96
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2F96#FFFFFF#000000##FFFFFF
##4F2F961.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#004394
Tritanopia (blue-blind)
#39485E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f2f96;
/* rgb */ color: rgb(79, 47, 150);
/* oklch */ color: oklch(40.6% 0.159 292.1);
Tailwind
colors: {
  custom: {
    50: '#876ab6',
    500: '#4f2f96',
    950: '#000000',
  },
}
SCSS
$custom: #4f2f96;
$custom-light: #876ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2f96",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 258.641,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4064,
    "c": 0.15919,
    "h": 292.1
  },
  "luminance": 0.05897
}

Semantic roles & 50–950 ramp

primary
#4F2F96
secondary
#A0B968
accent
#DC4CAF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2F96

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

Preview Lab → · Contrast checker → · Palette generator →

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