#4F2F9E#4F2F9E

#4F2F9E is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.169 H 290.2°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#4F2F9E
RGBrgb(79, 47, 158)
HSLhsl(257, 54%, 40%)
HSVhsv(257, 70%, 62%)
CMYKcmyk(50%, 70.3%, 0%, 38%)
CIE-LABlab(29.82, 41.73, -55.32)
CIE-LCHlch(29.82, 69.29, 307.03°)
OKLaboklab(41.33% 0.0585 -0.1587)
OKLCHoklch(41.33% 0.169 290.2)
XYZxyz(10.4108, 6.1635, 32.9823)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2F9E #7E9E2F
analogous
#2F479E #4F2F9E #862F9E
triadic
#4F2F9E #9E4F2F #2F9E4F
tetradic
#4F2F9E #9E2F47 #7E9E2F #2F9E86
square
#4F2F9E #9E2F47 #7E9E2F #2F9E86
split-complementary
#4F2F9E #9E862F #479E2F
monochromatic
#201340 #37216F #4F2F9E #6943C7 #8F72D5

Accessibility & contrast

On white

9.41
#4F2F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F2F9E
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2F9E#FFFFFF#000000##FFFFFF
##4F2F9E1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#344B63
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f2f9e;
/* rgb */ color: rgb(79, 47, 158);
/* oklch */ color: oklch(41.3% 0.169 290.2);
Tailwind
colors: {
  custom: {
    50: '#886abc',
    500: '#4f2f9e',
    950: '#000000',
  },
}
SCSS
$custom: #4f2f9e;
$custom-light: #886abc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2f9e",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 257.297,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41328,
    "c": 0.1691,
    "h": 290.2
  },
  "luminance": 0.06164
}

Semantic roles & 50–950 ramp

primary
#4F2F9E
secondary
#A6BD6C
accent
#DE4AB3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4F2F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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