#4F2F9D#4F2F9D

#4F2F9D is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.168 H 290.4°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#4F2F9D
RGBrgb(79, 47, 157)
HSLhsl(257, 54%, 40%)
HSVhsv(257, 70%, 62%)
CMYKcmyk(49.7%, 70.1%, 0%, 38.4%)
CIE-LABlab(29.74, 41.43, -54.85)
CIE-LCHlch(29.74, 68.74, 307.07°)
OKLaboklab(41.24% 0.0586 -0.1573)
OKLCHoklch(41.24% 0.168 290.4)
XYZxyz(10.3250, 6.1292, 32.5308)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2F9D #7D9D2F
analogous
#2F469D #4F2F9D #862F9D
triadic
#4F2F9D #9D4F2F #2F9D4F
tetradic
#4F2F9D #9D2F46 #7D9D2F #2F9D86
square
#4F2F9D #9D2F46 #7D9D2F #2F9D86
split-complementary
#4F2F9D #9D862F #469D2F
monochromatic
#20133F #37216E #4F2F9D #6943C7 #8F72D5

Accessibility & contrast

On white

9.43
#4F2F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4F2F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2F9D
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2F9D#FFFFFF#000000##FFFFFF
##4F2F9D1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#00449B
Tritanopia (blue-blind)
#354B62
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f2f9d;
/* rgb */ color: rgb(79, 47, 157);
/* oklch */ color: oklch(41.2% 0.168 290.4);
Tailwind
colors: {
  custom: {
    50: '#886abb',
    500: '#4f2f9d',
    950: '#000000',
  },
}
SCSS
$custom: #4f2f9d;
$custom-light: #886abb;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2f9d",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 257.455,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.41241,
    "c": 0.16787,
    "h": 290.4
  },
  "luminance": 0.0613
}

Semantic roles & 50–950 ramp

primary
#4F2F9D
secondary
#A5BC6B
accent
#DD4BB3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4F2F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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