#4F2B87#4F2B87

#4F2B87 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.146 H 297.0°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#4F2B87
RGBrgb(79, 43, 135)
HSLhsl(263, 52%, 35%)
HSVhsv(263, 68%, 53%)
CMYKcmyk(41.5%, 68.1%, 0%, 47.1%)
CIE-LABlab(27.13, 37.35, -45.55)
CIE-LCHlch(27.13, 58.91, 309.36°)
OKLaboklab(38.81% 0.0663 -0.1299)
OKLCHoklch(38.81% 0.146 297)
XYZxyz(8.4604, 5.1391, 23.4632)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2B87 #63872B
analogous
#2B3587 #4F2B87 #7D2B87
triadic
#4F2B87 #874F2B #2B874F
tetradic
#4F2B87 #872B35 #63872B #2B877D
square
#4F2B87 #872B35 #63872B #2B877D
split-complementary
#4F2B87 #877D2B #35872B
monochromatic
#190D2A #341C59 #4F2B87 #6A3AB5 #8A60CC

Accessibility & contrast

On white

10.36
#4F2B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4F2B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2B87
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2B87#FFFFFF#000000##FFFFFF
##4F2B871.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#414155
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f2b87;
/* rgb */ color: rgb(79, 43, 135);
/* oklch */ color: oklch(38.8% 0.146 297.0);
Tailwind
colors: {
  custom: {
    50: '#8567ab',
    500: '#4f2b87',
    950: '#000000',
  },
}
SCSS
$custom: #4f2b87;
$custom-light: #8567ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2b87",
  "rgb": {
    "r": 79,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 263.478,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38807,
    "c": 0.14589,
    "h": 297
  },
  "luminance": 0.05139
}

Semantic roles & 50–950 ramp

primary
#4F2B87
secondary
#90B25B
accent
#DB4DA3
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4F2B87

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

Preview Lab → · Contrast checker → · Palette generator →

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