#4F2187#4F2187

#4F2187 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.159 H 299.0°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#4F2187
RGBrgb(79, 33, 135)
HSLhsl(267, 61%, 33%)
HSVhsv(267, 76%, 53%)
CMYKcmyk(41.5%, 75.6%, 0%, 47.1%)
CIE-LABlab(25.26, 42.56, -48.59)
CIE-LCHlch(25.26, 64.60, 311.22°)
OKLaboklab(37.48% 0.0769 -0.1388)
OKLCHoklch(37.48% 0.159 299)
XYZxyz(8.1404, 4.4991, 23.3565)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2187 #598721
analogous
#212687 #4F2187 #822187
triadic
#4F2187 #874F21 #21874F
tetradic
#4F2187 #872126 #598721 #218782
square
#4F2187 #872126 #598721 #218782
split-complementary
#4F2187 #878221 #268721
monochromatic
#150925 #321556 #4F2187 #6C2DB8 #8B4FD4

Accessibility & contrast

On white

11.05
#4F2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4F2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2187
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2187#FFFFFF#000000##FFFFFF
##4F21871.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f2187;
/* rgb */ color: rgb(79, 33, 135);
/* oklch */ color: oklch(37.5% 0.159 299.0);
Tailwind
colors: {
  custom: {
    50: '#8661ab',
    500: '#4f2187',
    950: '#000000',
  },
}
SCSS
$custom: #4f2187;
$custom-light: #8661ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2187",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 267.059,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37475,
    "c": 0.15873,
    "h": 299
  },
  "luminance": 0.04499
}

Semantic roles & 50–950 ramp

primary
#4F2187
secondary
#87B74D
accent
#E4449C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F2187

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

Preview Lab → · Contrast checker → · Palette generator →

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