#4F2287#4F2287

#4F2287 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.158 H 298.8°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#4F2287
RGBrgb(79, 34, 135)
HSLhsl(267, 60%, 33%)
HSVhsv(267, 75%, 53%)
CMYKcmyk(41.5%, 74.8%, 0%, 47.1%)
CIE-LABlab(25.43, 42.08, -48.31)
CIE-LCHlch(25.43, 64.07, 311.06°)
OKLaboklab(37.6% 0.076 -0.138)
OKLCHoklch(37.6% 0.158 298.8)
XYZxyz(8.1685, 4.5555, 23.3659)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2287 #5A8722
analogous
#222787 #4F2287 #812287
triadic
#4F2287 #874F22 #22874F
tetradic
#4F2287 #872227 #5A8722 #228781
square
#4F2287 #872227 #5A8722 #228781
split-complementary
#4F2287 #878122 #278722
monochromatic
#160925 #321656 #4F2287 #6C2EB8 #8B50D3

Accessibility & contrast

On white

10.99
#4F2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4F2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2287
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2287#FFFFFF#000000##FFFFFF
##4F22871.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#413C52
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f2287;
/* rgb */ color: rgb(79, 34, 135);
/* oklch */ color: oklch(37.6% 0.158 298.8);
Tailwind
colors: {
  custom: {
    50: '#8662ab',
    500: '#4f2287',
    950: '#000000',
  },
}
SCSS
$custom: #4f2287;
$custom-light: #8662ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2287",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 266.733,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37596,
    "c": 0.15755,
    "h": 298.8
  },
  "luminance": 0.04556
}

Semantic roles & 50–950 ramp

primary
#4F2287
secondary
#88B74E
accent
#E3459D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F2287

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

Preview Lab → · Contrast checker → · Palette generator →

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