#4F2F8D#4F2F8D

#4F2F8D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.9% C 0.148 H 294.4°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#4F2F8D
RGBrgb(79, 47, 141)
HSLhsl(260, 50%, 37%)
HSVhsv(260, 67%, 55%)
CMYKcmyk(44%, 66.7%, 0%, 44.7%)
CIE-LABlab(28.43, 36.80, -47.16)
CIE-LCHlch(28.43, 59.82, 307.96°)
OKLaboklab(39.89% 0.061 -0.1347)
OKLCHoklch(39.89% 0.148 294.4)
XYZxyz(9.0474, 5.6182, 25.8019)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2F8D #6D8D2F
analogous
#2F3E8D #4F2F8D #7E2F8D
triadic
#4F2F8D #8D4F2F #2F8D4F
tetradic
#4F2F8D #8D2F3E #6D8D2F #2F8D7E
square
#4F2F8D #8D2F3E #6D8D2F #2F8D7E
split-complementary
#4F2F8D #8D7E2F #3E8D2F
monochromatic
#1C1031 #35205F #4F2F8D #693EBB #8B69CD

Accessibility & contrast

On white

9.89
#4F2F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4F2F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2F8D
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2F8D#FFFFFF#000000##FFFFFF
##4F2F8D1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#3E4559
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4f2f8d;
/* rgb */ color: rgb(79, 47, 141);
/* oklch */ color: oklch(39.9% 0.148 294.4);
Tailwind
colors: {
  custom: {
    50: '#8669af',
    500: '#4f2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #4f2f8d;
$custom-light: #8669af;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2f8d",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 260.426,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39893,
    "c": 0.14788,
    "h": 294.4
  },
  "luminance": 0.05618
}

Semantic roles & 50–950 ramp

primary
#4F2F8D
secondary
#99B464
accent
#DA4EAA
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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