#4F2162#4F2162

#4F2162 is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.5% C 0.116 H 314.7°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#4F2162
RGBrgb(79, 33, 98)
HSLhsl(282, 50%, 26%)
HSVhsv(282, 66%, 38%)
CMYKcmyk(19.4%, 66.3%, 0%, 61.6%)
CIE-LABlab(22.42, 33.20, -29.49)
CIE-LCHlch(22.42, 44.41, 318.38°)
OKLaboklab(34.55% 0.0819 -0.0828)
OKLCHoklch(34.55% 0.116 314.7)
XYZxyz(5.9726, 3.6320, 11.9393)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2162 #346221
analogous
#2F2162 #4F2162 #622154
triadic
#4F2162 #624F21 #21624F
tetradic
#4F2162 #622F21 #346221 #215462
square
#4F2162 #622F21 #346221 #215462
split-complementary
#4F2162 #546221 #21622F
monochromatic
#120817 #2A1234 #4F2162 #743090 #9940BE

Accessibility & contrast

On white

12.16
#4F2162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4F2162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2162
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2162#FFFFFF#000000##FFFFFF
##4F21621.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3364
Deuteranopia (green-blind)
#1F3760
Tritanopia (blue-blind)
#4D2D3E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f2162;
/* rgb */ color: rgb(79, 33, 98);
/* oklch */ color: oklch(34.5% 0.116 314.7);
Tailwind
colors: {
  custom: {
    50: '#835f8f',
    500: '#4f2162',
    950: '#000000',
  },
}
SCSS
$custom: #4f2162;
$custom-light: #835f8f;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2162",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 282.462,
    "s": 49.618,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34546,
    "c": 0.1164,
    "h": 314.7
  },
  "luminance": 0.03632
}

Semantic roles & 50–950 ramp

primary
#4F2162
secondary
#5F9649
accent
#D94F77
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #4F2162

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

Preview Lab → · Contrast checker → · Palette generator →

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