#4F2F8E#4F2F8E

#4F2F8E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.149 H 294.1°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#4F2F8E
RGBrgb(79, 47, 142)
HSLhsl(260, 50%, 37%)
HSVhsv(260, 67%, 56%)
CMYKcmyk(44.4%, 66.9%, 0%, 44.3%)
CIE-LABlab(28.51, 37.08, -47.65)
CIE-LCHlch(28.51, 60.38, 307.89°)
OKLaboklab(39.97% 0.0609 -0.1361)
OKLCHoklch(39.97% 0.149 294.1)
XYZxyz(9.1221, 5.6480, 26.1955)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2F8E #6E8E2F
analogous
#2F3E8E #4F2F8E #7F2F8E
triadic
#4F2F8E #8E4F2F #2F8E4F
tetradic
#4F2F8E #8E2F3E #6E8E2F #2F8E7F
square
#4F2F8E #8E2F3E #6E8E2F #2F8E7F
split-complementary
#4F2F8E #8E7F2F #3E8E2F
monochromatic
#1C1132 #352060 #4F2F8E #693EBC #8B6ACE

Accessibility & contrast

On white

9.86
#4F2F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4F2F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2F8E
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2F8E#FFFFFF#000000##FFFFFF
##4F2F8E1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#3E455A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4f2f8e;
/* rgb */ color: rgb(79, 47, 142);
/* oklch */ color: oklch(40.0% 0.149 294.1);
Tailwind
colors: {
  custom: {
    50: '#866ab0',
    500: '#4f2f8e',
    950: '#000000',
  },
}
SCSS
$custom: #4f2f8e;
$custom-light: #866ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2f8e",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 260.211,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39974,
    "c": 0.14915,
    "h": 294.1
  },
  "luminance": 0.05648
}

Semantic roles & 50–950 ramp

primary
#4F2F8E
secondary
#9AB564
accent
#DA4EAB
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F2F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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