#4F2186#4F2186

#4F2186 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.158 H 299.3°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#4F2186
RGBrgb(79, 33, 134)
HSLhsl(267, 60%, 33%)
HSVhsv(267, 75%, 53%)
CMYKcmyk(41%, 75.4%, 0%, 47.5%)
CIE-LABlab(25.17, 42.30, -48.10)
CIE-LCHlch(25.17, 64.06, 311.33°)
OKLaboklab(37.39% 0.0772 -0.1374)
OKLCHoklch(37.39% 0.158 299.3)
XYZxyz(8.0703, 4.4711, 22.9875)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2186 #588621
analogous
#212586 #4F2186 #822186
triadic
#4F2186 #864F21 #21864F
tetradic
#4F2186 #862125 #588621 #218682
square
#4F2186 #862125 #588621 #218682
split-complementary
#4F2186 #868221 #258621
monochromatic
#150924 #321555 #4F2186 #6C2DB7 #8B4ED3

Accessibility & contrast

On white

11.09
#4F2186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4F2186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2186
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2186#FFFFFF#000000##FFFFFF
##4F21861.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f2186;
/* rgb */ color: rgb(79, 33, 134);
/* oklch */ color: oklch(37.4% 0.158 299.3);
Tailwind
colors: {
  custom: {
    50: '#8661aa',
    500: '#4f2186',
    950: '#000000',
  },
}
SCSS
$custom: #4f2186;
$custom-light: #8661aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2186",
  "rgb": {
    "r": 79,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 267.327,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37387,
    "c": 0.1576,
    "h": 299.3
  },
  "luminance": 0.04471
}

Semantic roles & 50–950 ramp

primary
#4F2186
secondary
#86B74C
accent
#E4449B
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F2186

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

Preview Lab → · Contrast checker → · Palette generator →

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