#4F2C87#4F2C87

#4F2C87 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.144 H 296.8°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#4F2C87
RGBrgb(79, 44, 135)
HSLhsl(263, 51%, 35%)
HSVhsv(263, 67%, 53%)
CMYKcmyk(41.5%, 67.4%, 0%, 47.1%)
CIE-LABlab(27.33, 36.79, -45.22)
CIE-LCHlch(27.33, 58.29, 309.14°)
OKLaboklab(38.96% 0.0652 -0.129)
OKLCHoklch(38.96% 0.145 296.8)
XYZxyz(8.4972, 5.2127, 23.4754)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2C87 #64872C
analogous
#2C3687 #4F2C87 #7C2C87
triadic
#4F2C87 #874F2C #2C874F
tetradic
#4F2C87 #872C36 #64872C #2C877C
square
#4F2C87 #872C36 #64872C #2C877C
split-complementary
#4F2C87 #877C2C #36872C
monochromatic
#190E2B #341D59 #4F2C87 #6A3BB5 #8A62CC

Accessibility & contrast

On white

10.28
#4F2C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4F2C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2C87
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2C87#FFFFFF#000000##FFFFFF
##4F2C871.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f2c87;
/* rgb */ color: rgb(79, 44, 135);
/* oklch */ color: oklch(39.0% 0.144 296.8);
Tailwind
colors: {
  custom: {
    50: '#8567ab',
    500: '#4f2c87',
    950: '#000000',
  },
}
SCSS
$custom: #4f2c87;
$custom-light: #8567ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2c87",
  "rgb": {
    "r": 79,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 263.077,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38955,
    "c": 0.1445,
    "h": 296.8
  },
  "luminance": 0.05213
}

Semantic roles & 50–950 ramp

primary
#4F2C87
secondary
#91B25D
accent
#DA4DA4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4F2C87

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

Preview Lab → · Contrast checker → · Palette generator →

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