#4F2882#4F2882

#4F2882 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.144 H 299.3°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#4F2882
RGBrgb(79, 40, 130)
HSLhsl(266, 53%, 33%)
HSVhsv(266, 69%, 51%)
CMYKcmyk(39.2%, 69.2%, 0%, 49%)
CIE-LABlab(26.13, 37.62, -44.03)
CIE-LCHlch(26.13, 57.92, 310.51°)
OKLaboklab(37.97% 0.0704 -0.1255)
OKLCHoklch(37.97% 0.144 299.3)
XYZxyz(8.0115, 4.7915, 21.6175)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2882 #5B8228
analogous
#282E82 #4F2882 #7C2882
triadic
#4F2882 #824F28 #28824F
tetradic
#4F2882 #82282E #5B8228 #28827C
square
#4F2882 #82282E #5B8228 #28827C
split-complementary
#4F2882 #827C28 #2E8228
monochromatic
#160B24 #331A53 #4F2882 #6B36B1 #8B59CC

Accessibility & contrast

On white

10.72
#4F2882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4F2882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2882
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2882#FFFFFF#000000##FFFFFF
##4F28821.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E85
Deuteranopia (green-blind)
#003D80
Tritanopia (blue-blind)
#433D51
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f2882;
/* rgb */ color: rgb(79, 40, 130);
/* oklch */ color: oklch(38.0% 0.144 299.3);
Tailwind
colors: {
  custom: {
    50: '#8565a7',
    500: '#4f2882',
    950: '#000000',
  },
}
SCSS
$custom: #4f2882;
$custom-light: #8565a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2882",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 130
  },
  "hsl": {
    "h": 266,
    "s": 52.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37968,
    "c": 0.14389,
    "h": 299.3
  },
  "luminance": 0.04792
}

Semantic roles & 50–950 ramp

primary
#4F2882
secondary
#89B155
accent
#DC4B9E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4F2882

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

Preview Lab → · Contrast checker → · Palette generator →

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