#4F2F9A#4F2F9A

#4F2F9A is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.164 H 291.1°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#4F2F9A
RGBrgb(79, 47, 154)
HSLhsl(258, 53%, 39%)
HSVhsv(258, 69%, 60%)
CMYKcmyk(48.7%, 69.5%, 0%, 39.6%)
CIE-LABlab(29.48, 40.56, -53.43)
CIE-LCHlch(29.48, 67.08, 307.20°)
OKLaboklab(40.98% 0.0592 -0.1531)
OKLCHoklch(40.98% 0.164 291.1)
XYZxyz(10.0721, 6.0280, 31.1984)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2F9A #7A9A2F
analogous
#2F459A #4F2F9A #852F9A
triadic
#4F2F9A #9A4F2F #2F9A4F
tetradic
#4F2F9A #9A2F45 #7A9A2F #2F9A85
square
#4F2F9A #9A2F45 #7A9A2F #2F9A85
split-complementary
#4F2F9A #9A852F #459A2F
monochromatic
#1F123C #37216B #4F2F9A #6941C5 #8E70D3

Accessibility & contrast

On white

9.52
#4F2F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4F2F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2F9A
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2F9A#FFFFFF#000000##FFFFFF
##4F2F9A1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#374A60
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f2f9a;
/* rgb */ color: rgb(79, 47, 154);
/* oklch */ color: oklch(41.0% 0.164 291.1);
Tailwind
colors: {
  custom: {
    50: '#876ab9',
    500: '#4f2f9a',
    950: '#000000',
  },
}
SCSS
$custom: #4f2f9a;
$custom-light: #876ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2f9a",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 257.944,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40981,
    "c": 0.16417,
    "h": 291.1
  },
  "luminance": 0.06028
}

Semantic roles & 50–950 ramp

primary
#4F2F9A
secondary
#A3BB6A
accent
#DD4BB1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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