#4F1262#4F1262

#4F1262 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.8% C 0.137 H 316.6°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#4F1262
RGBrgb(79, 18, 98)
HSLhsl(286, 69%, 23%)
HSVhsv(286, 82%, 38%)
CMYKcmyk(19.4%, 81.6%, 0%, 61.6%)
CIE-LABlab(19.95, 40.12, -33.45)
CIE-LCHlch(19.95, 52.23, 320.18°)
OKLaboklab(32.78% 0.0995 -0.0942)
OKLCHoklch(32.78% 0.137 316.6)
XYZxyz(5.6450, 2.9770, 11.8302)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1262 #256212
analogous
#271262 #4F1262 #62124D
triadic
#4F1262 #624F12 #12624F
tetradic
#4F1262 #622712 #256212 #124D62
square
#4F1262 #622712 #256212 #124D62
split-complementary
#4F1262 #4D6212 #126227
monochromatic
#15051A #25092E #4F1262 #791B96 #A225C9

Accessibility & contrast

On white

13.16
#4F1262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#4F1262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1262
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1262#FFFFFF#000000##FFFFFF
##4F12621.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D64
Deuteranopia (green-blind)
#123260
Tritanopia (blue-blind)
#4E243A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4f1262;
/* rgb */ color: rgb(79, 18, 98);
/* oklch */ color: oklch(32.8% 0.137 316.6);
Tailwind
colors: {
  custom: {
    50: '#84588f',
    500: '#4f1262',
    950: '#000000',
  },
}
SCSS
$custom: #4f1262;
$custom-light: #84588f;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1262",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 285.75,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32782,
    "c": 0.13708,
    "h": 316.6
  },
  "luminance": 0.02977
}

Semantic roles & 50–950 ramp

primary
#4F1262
secondary
#4E9A36
accent
#EC3C66
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4F1262

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

Preview Lab → · Contrast checker → · Palette generator →

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