#4F1268#4F1268

#4F1268 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.3% C 0.143 H 313.5°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#4F1268
RGBrgb(79, 18, 104)
HSLhsl(283, 70%, 24%)
HSVhsv(283, 83%, 41%)
CMYKcmyk(24%, 82.7%, 0%, 59.2%)
CIE-LABlab(20.42, 41.43, -36.64)
CIE-LCHlch(20.42, 55.31, 318.51°)
OKLaboklab(33.26% 0.0984 -0.1036)
OKLCHoklch(33.26% 0.143 313.5)
XYZxyz(5.9390, 3.0945, 13.3785)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1268 #2B6812
analogous
#241268 #4F1268 #681256
triadic
#4F1268 #684F12 #12684F
tetradic
#4F1268 #682412 #2B6812 #125668
square
#4F1268 #682412 #2B6812 #125668
split-complementary
#4F1268 #566812 #126824
monochromatic
#14051A #270934 #4F1268 #771B9C #9E24D0

Accessibility & contrast

On white

12.97
#4F1268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4F1268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1268
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1268#FFFFFF#000000##FFFFFF
##4F12681.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#083366
Tritanopia (blue-blind)
#4C273D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4f1268;
/* rgb */ color: rgb(79, 18, 104);
/* oklch */ color: oklch(33.3% 0.143 313.5);
Tailwind
colors: {
  custom: {
    50: '#845894',
    500: '#4f1268',
    950: '#000000',
  },
}
SCSS
$custom: #4f1268;
$custom-light: #845894;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1268",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 282.558,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.33259,
    "c": 0.1429,
    "h": 313.5
  },
  "luminance": 0.03094
}

Semantic roles & 50–950 ramp

primary
#4F1268
secondary
#55A036
accent
#ED3B6E
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4F1268

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

Preview Lab → · Contrast checker → · Palette generator →

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