#4F2F87#4F2F87

#4F2F87 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.140 H 296.1°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#4F2F87
RGBrgb(79, 47, 135)
HSLhsl(262, 48%, 36%)
HSVhsv(262, 65%, 53%)
CMYKcmyk(41.5%, 65.2%, 0%, 47.1%)
CIE-LABlab(27.97, 35.08, -44.19)
CIE-LCHlch(27.97, 56.42, 308.44°)
OKLaboklab(39.41% 0.0616 -0.126)
OKLCHoklch(39.41% 0.14 296.1)
XYZxyz(8.6130, 5.4444, 23.5141)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2F87 #67872F
analogous
#2F3B87 #4F2F87 #7B2F87
triadic
#4F2F87 #874F2F #2F874F
tetradic
#4F2F87 #872F3B #67872F #2F877B
square
#4F2F87 #872F3B #67872F #2F877B
split-complementary
#4F2F87 #877B2F #3B872F
monochromatic
#1A0F2C #341F5A #4F2F87 #6A3FB4 #8B66CA

Accessibility & contrast

On white

10.05
#4F2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4F2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2F87
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2F87#FFFFFF#000000##FFFFFF
##4F2F871.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#414356
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4f2f87;
/* rgb */ color: rgb(79, 47, 135);
/* oklch */ color: oklch(39.4% 0.140 296.1);
Tailwind
colors: {
  custom: {
    50: '#8569ab',
    500: '#4f2f87',
    950: '#000000',
  },
}
SCSS
$custom: #4f2f87;
$custom-light: #8569ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2f87",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 261.818,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39412,
    "c": 0.14022,
    "h": 296.1
  },
  "luminance": 0.05445
}

Semantic roles & 50–950 ramp

primary
#4F2F87
secondary
#94B161
accent
#D850A6
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4F2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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