#4F2288#4F2288

#4F2288 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.159 H 298.5°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#4F2288
RGBrgb(79, 34, 136)
HSLhsl(266, 60%, 33%)
HSVhsv(266, 75%, 53%)
CMYKcmyk(41.9%, 75%, 0%, 46.7%)
CIE-LABlab(25.51, 42.34, -48.80)
CIE-LCHlch(25.51, 64.61, 310.95°)
OKLaboklab(37.68% 0.0757 -0.1394)
OKLCHoklch(37.68% 0.159 298.5)
XYZxyz(8.2393, 4.5838, 23.7384)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2288 #5B8822
analogous
#222888 #4F2288 #822288
triadic
#4F2288 #884F22 #22884F
tetradic
#4F2288 #882228 #5B8822 #228882
square
#4F2288 #882228 #5B8822 #228882
split-complementary
#4F2288 #888222 #288822
monochromatic
#160A26 #331657 #4F2288 #6B2EB9 #8B51D3

Accessibility & contrast

On white

10.96
#4F2288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4F2288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2288
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2288#FFFFFF#000000##FFFFFF
##4F22881.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8B
Deuteranopia (green-blind)
#003B86
Tritanopia (blue-blind)
#413C53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f2288;
/* rgb */ color: rgb(79, 34, 136);
/* oklch */ color: oklch(37.7% 0.159 298.5);
Tailwind
colors: {
  custom: {
    50: '#8662ac',
    500: '#4f2288',
    950: '#000000',
  },
}
SCSS
$custom: #4f2288;
$custom-light: #8662ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2288",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 136
  },
  "hsl": {
    "h": 266.471,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37683,
    "c": 0.15869,
    "h": 298.5
  },
  "luminance": 0.04584
}

Semantic roles & 50–950 ramp

primary
#4F2288
secondary
#89B74F
accent
#E3459D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F2288

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

Preview Lab → · Contrast checker → · Palette generator →

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